Paginator<T>.pageView constructor

const Paginator<T>.pageView(
  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.horizontal,
  12. bool reverse = false,
  13. ScrollPhysics scrollPhysics,
  14. ValueChanged<int> onPageChanged,
  15. bool pageSnapping = true,
  16. PageController pageController}
)

Implementation

const Paginator.pageView({
  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.horizontal,
  this.reverse = false,
  this.scrollPhysics,
  this.onPageChanged,
  this.pageSnapping = true,
  this.pageController,
})  : this.listType = ListType.PAGE_VIEW,
      this.padding = null,
      this.shrinkWrap = false,
      this.scrollController = null,
      this.primary = null,
      this.semanticChildCount = null,
      this.cacheExtent = null,
      this.addAutomaticKeepAlives = true,
      this.addRepaintBoundaries = true,
      this.addSemanticIndexes = true,
      this.itemExtent = null,
      this.gridDelegate = null,
      super(key: key);