itemsIndexed

fun <T : Any> LazyListScope.itemsIndexed(    pagingDataState: LazyPagingItems<T>,     key: (index: Int) -> Any? = null,     itemContent: @Composable LazyItemScope.(index: Int, value: T?) -> Unit)

Adds the LazyPagingItems and their content to the scope where the content of an item is aware of its local index.

Parameters

pagingDataState

LazyPagingItems instance to display

key

a factory of stable and unique keys representing the item. Using the same key for multiple items in the list is not allowed.

itemContent

the content displayed by a single item.