PagedMasonryGridView<PageKeyType, ItemType>.extent constructor
PagedMasonryGridView<PageKeyType, ItemType>.extent ({
- required PagedChildBuilderDelegate<
PagingItem> builderDelegate, - required double maxCrossAxisExtent,
- PagedChildStatusBuilderDelegate<
PagingItem> ? statusBuilderDelegate, - 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, - Key? key,
Equivalent to MasonryGridView.extent
.
Implementation
PagedMasonryGridView.extent({
required this.builderDelegate,
required double maxCrossAxisExtent,
this.statusBuilderDelegate,
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,
super.key,
}) : _shrinkWrapFirstPageIndicators = shrinkWrap,
gridDelegateBuilder =
((childCount) => SliverSimpleGridDelegateWithMaxCrossAxisExtent(
maxCrossAxisExtent: maxCrossAxisExtent,
)),
super(
controller: scrollController,
);