Paginator<T>.listView constructor
const
Paginator<T>.listView ({
- Key? key,
- required PageLoadFuture<
T> pageLoadFuture, - required PageItemsGetter<
T> pageItemsGetter, - required ListItemBuilder listItemBuilder,
- required LoadingWidgetBuilder loadingWidgetBuilder,
- required ErrorWidgetBuilder<
T> errorWidgetBuilder, - required EmptyListWidgetBuilder<
T> emptyListWidgetBuilder, - required TotalItemsGetter<
T> totalItemsGetter, - required PageErrorChecker<
T> pageErrorChecker, - Key? scrollViewKey,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollPhysics? scrollPhysics,
- EdgeInsets? padding,
- bool shrinkWrap = false,
- ScrollController? scrollController,
- bool? primary,
- int? semanticChildCount,
- double? cacheExtent,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- 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);