PagedGridView<PageKeyType, ItemType> constructor
const
PagedGridView<PageKeyType, ItemType> ({
- required PagingState<
PageKeyType, ItemType> state, - required NextPageCallback fetchNextPage,
- required PagedChildBuilderDelegate<
ItemType> builderDelegate, - required SliverGridDelegate gridDelegate,
- 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,
- double? cacheExtent,
- bool showNewPageProgressIndicatorAsGridChild = true,
- bool showNewPageErrorIndicatorAsGridChild = true,
- bool showNoMoreItemsIndicatorAsGridChild = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- Key? key,
Implementation
const PagedGridView({
required this.state,
required this.fetchNextPage,
required this.builderDelegate,
required this.gridDelegate,
// 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,
// Matches [ScrollView.cacheExtent].
super.cacheExtent,
this.showNewPageProgressIndicatorAsGridChild = true,
this.showNewPageErrorIndicatorAsGridChild = true,
this.showNoMoreItemsIndicatorAsGridChild = true,
// 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,
);