PagedSliverAlignedGrid<PageKeyType, ItemType>.extent constructor

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

Implementation

PagedSliverAlignedGrid.extent({
  super.key,
  required this.builderDelegate,
  required double maxCrossAxisExtent,
  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,
  this.statusBuilderDelegate,
  required this.pagingDataController,
  this.persistent,
  this.forceUseInitData,
}) : gridDelegateBuilder = ((childCount) => SliverSimpleGridDelegateWithMaxCrossAxisExtent(
            maxCrossAxisExtent: maxCrossAxisExtent,
          ));