PagedGridView<PageKeyType, ItemType> constructor
const
PagedGridView<PageKeyType, ItemType> ({
- required PagedChildBuilderDelegate<
PagingItem> builderDelegate, - required SliverGridDelegate gridDelegate,
- PagedChildStatusBuilderDelegate<
PagingItem> ? statusBuilderDelegate, - ScrollController? scrollController,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- bool? persistent,
- required PagingDataController<
dynamic, PagingItem> pagingDataController, - double? cacheExtent,
- bool showNewPageProgressIndicatorAsGridChild = false,
- bool showNewPageErrorIndicatorAsGridChild = false,
- bool showNoMoreItemsIndicatorAsGridChild = false,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- Key? key,
Implementation
const PagedGridView({
required this.builderDelegate,
required this.gridDelegate,
this.statusBuilderDelegate,
// Matches [ScrollView.controller].
ScrollController? scrollController,
// Matches [ScrollView.scrollDirection].
super.scrollDirection,
// Matches [ScrollView.reverse].
super.reverse,
// Matches [ScrollView.primary].
super.primary,
// Matches [ScrollView.physics].
super.physics,
// Matches [ScrollView.shrinkWrap].
super.shrinkWrap,
// Matches [BoxScrollView.padding].
super.padding,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
this.persistent,
required this.pagingDataController,
// Matches [ScrollView.cacheExtent].
super.cacheExtent,
this.showNewPageProgressIndicatorAsGridChild = false,
this.showNewPageErrorIndicatorAsGridChild = false,
this.showNoMoreItemsIndicatorAsGridChild = false,
// Matches [ScrollView.dragStartBehavior].
super.dragStartBehavior,
// Matches [ScrollView.keyboardDismissBehavior].
super.keyboardDismissBehavior,
// Matches [ScrollView.restorationId].
super.restorationId,
// Matches [ScrollView.clipBehavior].
super.clipBehavior,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
super(
controller: scrollController,
);