items
abstract fun items(count: Int, key: (index: Int) -> Any, contentType: (index: Int) -> Any? = { null }, selectable: (index: Int) -> Boolean = { true }, itemContent: @Composable SelectableLazyItemScope.(index: Int) -> Unit)
Represents a list of items based on the provided parameters.
Parameters
count
The number of items in the list.
key
A function that generates a unique key for each item based on its index.
content Type
A function that returns the content type of an item based on its index. Defaults to null.
selectable
A function that determines if an item is selectable based on its index. Defaults to true.
item Content
The content of each individual item, specified as a composable function that takes the item's index as a parameter.