PagedSliverMasonryGrid<PageKeyType, ItemType>.count constructor

PagedSliverMasonryGrid<PageKeyType, ItemType>.count({
  1. required PagedChildBuilderDelegate<PagingItem> builderDelegate,
  2. required int crossAxisCount,
  3. double mainAxisSpacing = 0,
  4. double crossAxisSpacing = 0,
  5. bool addAutomaticKeepAlives = true,
  6. bool addRepaintBoundaries = true,
  7. bool addSemanticIndexes = true,
  8. bool showNewPageProgressIndicatorAsGridChild = true,
  9. bool showNewPageErrorIndicatorAsGridChild = true,
  10. bool showNoMoreItemsIndicatorAsGridChild = true,
  11. bool shrinkWrapFirstPageIndicators = false,
  12. required PagingDataController<dynamic, PagingItem> pagingBuilderController,
  13. PagedChildStatusBuilderDelegate<PagingItem>? statusBuilderDelegate,
  14. Key? key,
  15. bool? persistent,
  16. bool? forceUseInitData,
})

Equivalent to SliverMasonryGrid.count.

Implementation

PagedSliverMasonryGrid.count({
  required this.builderDelegate,
  required int crossAxisCount,
  this.mainAxisSpacing = 0,
  this.crossAxisSpacing = 0,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.showNewPageProgressIndicatorAsGridChild = true,
  this.showNewPageErrorIndicatorAsGridChild = true,
  this.showNoMoreItemsIndicatorAsGridChild = true,
  this.shrinkWrapFirstPageIndicators = false,
  required this.pagingBuilderController,
  this.statusBuilderDelegate,
  super.key,
  this.persistent,
  this.forceUseInitData,
}) : gridDelegateBuilder = ((childCount) => SliverSimpleGridDelegateWithFixedCrossAxisCount(
            crossAxisCount: crossAxisCount,
          ));