PagedMasonryGridView<PageKeyType, ItemType> constructor

const PagedMasonryGridView<PageKeyType, ItemType>({
  1. required PagedChildBuilderDelegate<PagingItem> builderDelegate,
  2. required SliverSimpleGridDelegateBuilder gridDelegateBuilder,
  3. PagedChildStatusBuilderDelegate<PagingItem>? statusBuilderDelegate,
  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. Key? key,
})

Implementation

const PagedMasonryGridView({
  required this.builderDelegate,
  required this.gridDelegateBuilder,
  this.statusBuilderDelegate,
  // Matches [ScrollView.scrollDirection].
  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,
      super(
        controller: scrollController,
      );