riverpod_infinite_scroll
library
Classes
-
NextPageKeyBuilderDefault<ItemType>
-
-
PagedNotifier<PageKeyType, ItemType>
-
A
StateNotifier
that has already all the properties that riverpod_infinite_scroll
needs and is intended for simple states only containing a list of records
-
PagedState<PageKeyType, ItemType>
-
PagedState contains the state that is needed to render an infinite scroll list
This class can be extended to add more properties specific to particular use cases
-
RiverPagedBuilder<PageKeyType, ItemType>
-
RiverPagedBuilder will build your infinite, scrollable list.
It expects a Riverpod
StateNotifierProvider
Typedefs
-
InfiniteScrollAutoDisposeProvider<PageKeyType, ItemType>
= AutoDisposeStateNotifierProvider<PagedNotifierMixin<PageKeyType, ItemType, PagedState<PageKeyType, ItemType>>, PagedState<PageKeyType, ItemType>>
-
-
InfiniteScrollProvider<PageKeyType, ItemType>
= StateNotifierProvider<PagedNotifierMixin<PageKeyType, ItemType, PagedState<PageKeyType, ItemType>>, PagedState<PageKeyType, ItemType>>
-
-
LoadFunction<PageKeyType, ItemType>
= Future<List<ItemType>?> Function(PageKeyType page, int limit)
-
-
NextPageKeyBuilder<PageKeyType, ItemType>
= PageKeyType? Function(List<ItemType>? lastItems, PageKeyType page, int limit)
-
-
PagedBuilder<PageKeyType, ItemType>
= Widget Function(PagingController<PageKeyType, ItemType> controller, PagedChildBuilderDelegate<ItemType> builder)
-