RiverPagedBuilder<PageKeyType, ItemType> constructor

const RiverPagedBuilder<PageKeyType, ItemType>({
  1. required InfiniteScrollProvider<PageKeyType, ItemType> provider,
  2. required PagedBuilder<PageKeyType, ItemType> pagedBuilder,
  3. required ItemWidgetBuilder<ItemType> itemBuilder,
  4. required PageKeyType firstPageKey,
  5. int limit = 20,
  6. bool pullToRefresh = false,
  7. Widget firstPageErrorIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  8. Widget firstPageProgressIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  9. Widget noItemsFoundIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  10. Widget newPageErrorIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  11. Widget newPageProgressIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  12. Widget noMoreItemsIndicatorBuilder(
    1. BuildContext context,
    2. PagingController controller
    )?,
  13. 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);