itemsIndexed
inline fun <T> LazyGridScope.itemsIndexed(items: List<T>, crossinline itemContent: @Composable LazyItemScope.(index: Int, item: T) -> Unit)
Adds a list of items where the content of an item is aware of its index.
Parameters
items
the data list
itemContent
the content displayed by a single item
inline fun <T> LazyGridScope.itemsIndexed(items: Array<T>, crossinline itemContent: @Composable LazyItemScope.(index: Int, item: T) -> Unit)
Adds an array of items where the content of an item is aware of its index.
Parameters
items
the data array
itemContent
the content displayed by a single item