Paginator<T>.listView constructor

const Paginator<T>.listView({
  1. Key? key,
  2. required PageLoadFuture<T> pageLoadFuture,
  3. required PageItemsGetter<T> pageItemsGetter,
  4. required ListItemBuilder listItemBuilder,
  5. required LoadingWidgetBuilder loadingWidgetBuilder,
  6. required ErrorWidgetBuilder<T> errorWidgetBuilder,
  7. required EmptyListWidgetBuilder<T> emptyListWidgetBuilder,
  8. required TotalItemsGetter<T> totalItemsGetter,
  9. required PageErrorChecker<T> pageErrorChecker,
  10. Key? scrollViewKey,
  11. Axis scrollDirection = Axis.vertical,
  12. bool reverse = false,
  13. ScrollPhysics? scrollPhysics,
  14. EdgeInsets? padding,
  15. bool shrinkWrap = false,
  16. ScrollController? scrollController,
  17. bool? primary,
  18. int? semanticChildCount,
  19. double? cacheExtent,
  20. bool addAutomaticKeepAlives = true,
  21. bool addRepaintBoundaries = true,
  22. bool addSemanticIndexes = true,
  23. double? itemExtent,
})

Implementation

const Paginator.listView({
  Key? key,
  required this.pageLoadFuture,
  required this.pageItemsGetter,
  required this.listItemBuilder,
  required this.loadingWidgetBuilder,
  required this.errorWidgetBuilder,
  required this.emptyListWidgetBuilder,
  required this.totalItemsGetter,
  required this.pageErrorChecker,
  this.scrollViewKey,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.scrollPhysics,
  this.padding,
  this.shrinkWrap = false,
  this.scrollController,
  this.primary,
  this.semanticChildCount,
  this.cacheExtent,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.itemExtent,
})  : this.listType = ListType.LIST_VIEW,
      this.onPageChanged = null,
      this.pageSnapping = true,
      this.pageController = null,
      this.gridDelegate = null,
      super(key: key);