PagedMasonryGridView<PageKeyType, ItemType>.count constructor

PagedMasonryGridView<PageKeyType, ItemType>.count({
  1. required PagingController<PageKeyType, ItemType> pagingController,
  2. required PagedChildBuilderDelegate<ItemType> 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. Key? key,
})

Equivalent to MasonryGridView.count.

Implementation

PagedMasonryGridView.count({
  required this.pagingController,
  required this.builderDelegate,
  required int crossAxisCount,
  Axis scrollDirection = Axis.vertical,
  // Matches [ScrollView.reverse].
  bool reverse = false,
  // Matches [ScrollView.primary].
  bool? primary,
  // Matches [ScrollView.physics].
  ScrollPhysics? physics,
  this.scrollController,
  this.mainAxisSpacing = 0.0,
  this.crossAxisSpacing = 0.0,
  // Matches [ScrollView.cacheExtent].
  double? cacheExtent,
  this.showNewPageProgressIndicatorAsGridChild = true,
  this.showNewPageErrorIndicatorAsGridChild = true,
  this.showNoMoreItemsIndicatorAsGridChild = true,
  // Matches [ScrollView.dragStartBehavior].
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  // Matches [ScrollView.keyboardDismissBehavior].
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  // Matches [ScrollView.restorationId].
  String? restorationId,
  // Matches [ScrollView.clipBehavior].
  Clip clipBehavior = Clip.hardEdge,
  // Matches [ScrollView.shrinkWrap].
  bool shrinkWrap = false,
  // Matches [BoxScrollView.padding].
  EdgeInsetsGeometry? padding,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  Key? key,
})  : _shrinkWrapFirstPageIndicators = shrinkWrap,
      gridDelegateBuilder =
          ((childCount) => SliverSimpleGridDelegateWithFixedCrossAxisCount(
                crossAxisCount: crossAxisCount,
              )),
      super(
        key: key,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: scrollController,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        padding: padding,
        cacheExtent: cacheExtent,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );