LazyLayoutKeyIndexMap

Function

Common
fun LazyLayoutKeyIndexMap(
    itemIndexRange: IntRange,
    intervalContent: LazyLayoutIntervalContent<*>,
): LazyLayoutKeyIndexMap

A LazyLayoutKeyIndexMap that keeps a mapping over given IntRange of items. Items outside of given range are considered unknown, with null returned as the index.

Parameters

itemIndexRangeRange of items to keep track of.
intervalContentSource of item information in the form of LazyLayoutIntervalContent.