paginated_builder library

Classes

Chunk<T, CursorType>
A subset of data retrieved from a data source.
Chunker<DataType, CursorType>
ItemComparator<T>
Provides values used in the PaginatedComparator.itemBuilder method with each iteration.
ItemData<T>
Provides values used in the PaginatedComparator.itemBuilder method with each iteration.
PaginatedBase<DataType, CursorType>
Manages caching and retrieval of Chunks using the provided paginator.
PaginatedBaseState<DataType, CursorType, StateType extends PaginatedBase<DataType, CursorType>>
PaginatedBuilder<DataType, CursorType>
Manages caching and retrieval of Chunks using the provided paginator.
PaginatedBuilderState<DataType, CursorType>
PaginatedComparator<DataType, CursorType>
Manages caching and retrieval of Chunks using the provided paginator.
PaginatedComparatorState<DataType, CursorType>
PaginatedSnapshot<T>

Typedefs

AnimatableIndexedWidgetBuilder = Widget Function(BuildContext context, int index, [Animation<double>? animation])
ComparableWidgetBuilder<T> = Widget Function(BuildContext context, ItemComparator<T> comparator, [Animation<double>? animation])
ConvertedWidgetBuilder<T> = Widget Function(BuildContext context, ItemData<T> data, [Animation<double>? animation])
Converter<T> = T Function(MaybeJson?)
CursorSelector<DataType, CursorType> = CursorType Function(DataType)
DataChunker<DataType, CursorType> = Future<List<DataType>> Function(CursorType? cursor, int limit)
DefaultPaginatorBuilder<DataType, CursorType> = Paginator<DataType, CursorType> Function(CursorSelector<DataType, CursorType> cursorSelector, DataChunker<DataType, CursorType> dataChunker)
EnclosingWidgetBuilder = Widget Function(int initialItemCount, AnimatableIndexedWidgetBuilder paginatedItemBuilder)
ErrorWidgetBuilder = Widget Function(Object error)
ItemReceivedCallback<T> = void Function(int, T, SnapshotState)
MaybeJson = Map<String, dynamic>?
Paginator<DataType, CursorType> = Future<Chunk<DataType, CursorType>> Function(Chunk<DataType, CursorType> chunk)