segmentedItemList
fun LazyListScope.segmentedItemList(count: Int, title: String? = null, key: (index: Int) -> Any? = null, contentType: (index: Int) -> Any? = { null }, itemContent: @Composable LazyItemScope.(index: Int) -> Unit)
Adds a lazy segmented list of items into an outer LazyColumn.
Each item in the list is lazily composed as it enters the viewport. The first item has 16.dp top corners, the last item has 16.dp bottom corners, intermediate corners are 4.dp, and adjacent items are separated by a 2.dp vertical gap.
Parameters
count
the number of items in this list.
title
optional title to show above the list.
key
a factory of stable and unique keys for each item.
contentType
a factory of content types for each item.
itemContent
the content for each item at index.
fun <T> LazyListScope.segmentedItemList(items: List<T>, title: String? = null, key: (item: T) -> Any? = null, contentType: (item: T) -> Any? = { null }, itemContent: @Composable LazyItemScope.(item: T) -> Unit)
Adds a lazy segmented list of items into an outer LazyColumn.
Parameters
items
the data list.
title
optional title to show above the list.
key
a factory of stable and unique keys for each item.
contentType
a factory of content types for each item.
itemContent
the content for each item.