itemsIndexed

inline fun <T> LazyListScope.itemsIndexed(items: List<T>, crossinline itemContent: @Composable (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> LazyListScope.itemsIndexed(items: Array<T>, crossinline itemContent: @Composable (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.