PagedGridView<PageKeyType, ItemType> constructor

const PagedGridView<PageKeyType, ItemType>({
  1. required PagedChildBuilderDelegate<PagingItem> builderDelegate,
  2. required SliverGridDelegate gridDelegate,
  3. PagedChildStatusBuilderDelegate<PagingItem>? statusBuilderDelegate,
  4. ScrollController? scrollController,
  5. Axis scrollDirection = Axis.vertical,
  6. bool reverse = false,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool shrinkWrap = false,
  10. EdgeInsetsGeometry? padding,
  11. bool addAutomaticKeepAlives = true,
  12. bool addRepaintBoundaries = true,
  13. bool addSemanticIndexes = true,
  14. bool? persistent,
  15. required PagingDataController<dynamic, PagingItem> pagingDataController,
  16. double? cacheExtent,
  17. bool showNewPageProgressIndicatorAsGridChild = false,
  18. bool showNewPageErrorIndicatorAsGridChild = false,
  19. bool showNoMoreItemsIndicatorAsGridChild = false,
  20. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  21. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  22. String? restorationId,
  23. Clip clipBehavior = Clip.hardEdge,
  24. Key? key,
})

Implementation

const PagedGridView({
  required this.builderDelegate,
  required this.gridDelegate,
  this.statusBuilderDelegate,
  // Matches [ScrollView.controller].
  ScrollController? scrollController,
  // Matches [ScrollView.scrollDirection].
  super.scrollDirection,
  // Matches [ScrollView.reverse].
  super.reverse,
  // Matches [ScrollView.primary].
  super.primary,
  // Matches [ScrollView.physics].
  super.physics,
  // Matches [ScrollView.shrinkWrap].
  super.shrinkWrap,
  // Matches [BoxScrollView.padding].
  super.padding,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.persistent,
  required this.pagingDataController,
  // Matches [ScrollView.cacheExtent].
  super.cacheExtent,
  this.showNewPageProgressIndicatorAsGridChild = false,
  this.showNewPageErrorIndicatorAsGridChild = false,
  this.showNoMoreItemsIndicatorAsGridChild = false,
  // Matches [ScrollView.dragStartBehavior].
  super.dragStartBehavior,
  // Matches [ScrollView.keyboardDismissBehavior].
  super.keyboardDismissBehavior,
  // Matches [ScrollView.restorationId].
  super.restorationId,
  // Matches [ScrollView.clipBehavior].
  super.clipBehavior,
  super.key,
})  : _shrinkWrapFirstPageIndicators = shrinkWrap,
      super(
        controller: scrollController,
      );