RiverPagedBuilder<PageKeyType, ItemType> constructor
const
RiverPagedBuilder<PageKeyType, ItemType> ({
- required InfiniteScrollProvider<
PageKeyType, ItemType> provider, - required PagedBuilder<
PageKeyType, ItemType> pagedBuilder, - required ItemWidgetBuilder<
ItemType> itemBuilder, - required PageKeyType firstPageKey,
- int limit = 20,
- bool pullToRefresh = false,
- Widget firstPageErrorIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Widget firstPageProgressIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Widget noItemsFoundIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Widget newPageErrorIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Widget newPageProgressIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Widget noMoreItemsIndicatorBuilder(
- BuildContext context,
- PagingController controller
- Key? key,
Implementation
const RiverPagedBuilder(
{required InfiniteScrollProvider<PageKeyType, ItemType> provider,
required this.pagedBuilder,
required this.itemBuilder,
required this.firstPageKey,
this.limit = 20,
this.pullToRefresh = false,
this.firstPageErrorIndicatorBuilder,
this.firstPageProgressIndicatorBuilder,
this.noItemsFoundIndicatorBuilder,
this.newPageErrorIndicatorBuilder,
this.newPageProgressIndicatorBuilder,
this.noMoreItemsIndicatorBuilder,
Key? key})
: _provider = provider,
_autoDisposeProvider = null,
super(key: key);