PagedAlignedGridView<PageKeyType, ItemType>.count constructor
PagedAlignedGridView<PageKeyType, ItemType>.count ({
- PagedChildStatusBuilderDelegate<
PagingItem> ? statusBuilderDelegate, - required PagedChildBuilderDelegate<
PagingItem> builderDelegate, - required int crossAxisCount,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool? primary,
- ScrollPhysics? physics,
- ScrollController? scrollController,
- double mainAxisSpacing = 0.0,
- double crossAxisSpacing = 0.0,
- double? cacheExtent,
- bool showNewPageProgressIndicatorAsGridChild = true,
- bool showNewPageErrorIndicatorAsGridChild = true,
- bool showNoMoreItemsIndicatorAsGridChild = true,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- required PagingDataController<
dynamic, PagingItem> pagingBuilderController, - bool? persistent,
- Key? key,
Equivalent to MasonryGridView.count
.
Implementation
PagedAlignedGridView.count({
this.statusBuilderDelegate,
required this.builderDelegate,
required int crossAxisCount,
super.scrollDirection,
// Matches [ScrollView.reverse].
super.reverse,
// Matches [ScrollView.primary].
super.primary,
// Matches [ScrollView.physics].
super.physics,
this.scrollController,
this.mainAxisSpacing = 0.0,
this.crossAxisSpacing = 0.0,
// 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,
// Matches [ScrollView.shrinkWrap].
super.shrinkWrap,
// Matches [BoxScrollView.padding].
super.padding,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
required this.pagingBuilderController,
this.persistent,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
gridDelegateBuilder =
((childCount) => SliverSimpleGridDelegateWithFixedCrossAxisCount(
crossAxisCount: crossAxisCount,
)),
super(
controller: scrollController,
);