PagedGridView<PageKeyType, ItemType> constructor

const PagedGridView<PageKeyType, ItemType>({
  1. required PagingController<PageKeyType, ItemType> pagingController,
  2. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  3. required SliverGridDelegate gridDelegate,
  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. double? cacheExtent,
  15. bool showNewPageProgressIndicatorAsGridChild = true,
  16. bool showNewPageErrorIndicatorAsGridChild = true,
  17. bool showNoMoreItemsIndicatorAsGridChild = true,
  18. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  19. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  20. String? restorationId,
  21. Clip clipBehavior = Clip.hardEdge,
  22. Key? key,
})

Implementation

const PagedGridView({
  required this.pagingController,
  required this.builderDelegate,
  required this.gridDelegate,
  // Matches [ScrollView.controller].
  ScrollController? scrollController,
  // Matches [ScrollView.scrollDirection].
  Axis scrollDirection = Axis.vertical,
  // Matches [ScrollView.reverse].
  bool reverse = false,
  // Matches [ScrollView.primary].
  bool? primary,
  // Matches [ScrollView.physics].
  ScrollPhysics? physics,
  // Matches [ScrollView.shrinkWrap].
  bool shrinkWrap = false,
  // Matches [BoxScrollView.padding].
  EdgeInsetsGeometry? padding,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  // Matches [ScrollView.cacheExtent].
  double? cacheExtent,
  this.showNewPageProgressIndicatorAsGridChild = true,
  this.showNewPageErrorIndicatorAsGridChild = true,
  this.showNoMoreItemsIndicatorAsGridChild = true,
  // Matches [ScrollView.dragStartBehavior].
  DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  // Matches [ScrollView.keyboardDismissBehavior].
  ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
      ScrollViewKeyboardDismissBehavior.manual,
  // Matches [ScrollView.restorationId].
  String? restorationId,
  // Matches [ScrollView.clipBehavior].
  Clip clipBehavior = Clip.hardEdge,
  Key? key,
})  : _shrinkWrapFirstPageIndicators = shrinkWrap,
      super(
        key: key,
        scrollDirection: scrollDirection,
        reverse: reverse,
        controller: scrollController,
        primary: primary,
        physics: physics,
        shrinkWrap: shrinkWrap,
        padding: padding,
        cacheExtent: cacheExtent,
        dragStartBehavior: dragStartBehavior,
        keyboardDismissBehavior: keyboardDismissBehavior,
        restorationId: restorationId,
        clipBehavior: clipBehavior,
      );