I am using compose-paging version 3.2.0. The get-operator on LazyPagingItems is defined like this:
Copy code
/**
* Returns the presented item at the specified position, notifying Paging of the item access to
* trigger any loads necessary to fulfill prefetchDistance.
*
* @see peek
*/
operator fun get(index: Int): T? {
pagingDataDiffer[index] // this registers the value load
return itemSnapshotList[index]
}
Is the any any way to avoid using the non-null operator (!!) to access items, example: