toState
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyListState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>
Binds a Pageable to a LazyListState, enabling automatic page fetching as items become visible.
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyGridState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>
Binds a Pageable to a LazyGridState, enabling automatic page fetching as items become visible.
fun <Key : Any, PageItem> Pageable<Key, PageItem>.toState(state: LazyStaggeredGridState, coroutineContext: CoroutineContext = EmptyCoroutineContext, key: (PageItem) -> Any = ::pageItemKey): PageableComposeState<PageItem>
Binds a Pageable to a LazyStaggeredGridState, enabling automatic page fetching as items become visible.