PagedAlignedGridView<PageKeyType, ItemType>.count constructor

PagedAlignedGridView<PageKeyType, ItemType>.count({
  1. PagedChildStatusBuilderDelegate<PagingItem>? statusBuilderDelegate,
  2. required PagedChildBuilderDelegate<PagingItem> builderDelegate,
  3. required int crossAxisCount,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. bool? primary,
  7. ScrollPhysics? physics,
  8. ScrollController? scrollController,
  9. double mainAxisSpacing = 0.0,
  10. double crossAxisSpacing = 0.0,
  11. double? cacheExtent,
  12. bool showNewPageProgressIndicatorAsGridChild = true,
  13. bool showNewPageErrorIndicatorAsGridChild = true,
  14. bool showNoMoreItemsIndicatorAsGridChild = true,
  15. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  16. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  17. String? restorationId,
  18. Clip clipBehavior = Clip.hardEdge,
  19. bool shrinkWrap = false,
  20. EdgeInsetsGeometry? padding,
  21. bool addAutomaticKeepAlives = true,
  22. bool addRepaintBoundaries = true,
  23. bool addSemanticIndexes = true,
  24. required PagingDataController<dynamic, PagingItem> pagingBuilderController,
  25. bool? persistent,
  26. 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,
      );