PagedGridView<PageKeyType, ItemType> constructor

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

Implementation

const PagedGridView({
  required this.state,
  required this.fetchNextPage,
  required this.builderDelegate,
  required this.gridDelegate,
  // 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,
  // 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,
  super.key,
})  : _shrinkWrapFirstPageIndicators = shrinkWrap,
      super(
        controller: scrollController,
      );