getChildSizeConstraints

fun ItemSizeConstraintsProviderScope.getChildSizeConstraints(item: CollectionItem<*>, collectionSize: IntSize = this.collectionSize): SizeConstraints

Calculates the size constraints for child items within a RecyclerView-like collection.

Return

SizeConstraints object containing the width and height measurement specifications (EXACTLY, AT_MOST, or UNSPECIFIED) that should be used when measuring the child item

Parameters

item

The collection item for which to calculate size constraints

collectionSize

The size of the collection container. Defaults to the collection size obtained from ItemSizeConstraintsProviderScope.