PagingGridView<PageKeyType, ItemType> constructor

const PagingGridView<PageKeyType, ItemType>({
  1. Key? key,
  2. bool isEnablePullToRefresh = true,
  3. EdgeInsets padding = EdgeInsets.zero,
  4. Axis scrollDirection = Axis.vertical,
  5. bool reverse = false,
  6. ScrollController? controller,
  7. bool? primary,
  8. ScrollPhysics? physics,
  9. bool shrinkWrap = false,
  10. bool addRepaintBoundaries = true,
  11. bool addAutomaticKeepAlives = true,
  12. bool addSemanticIndexes = true,
  13. double? cacheExtent,
  14. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  15. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  16. SemanticIndexCallback? semanticIndexCallback,
  17. double? itemExtent,
  18. bool showNewPageProgressIndicatorAsGridChild = true,
  19. bool showNewPageErrorIndicatorAsGridChild = true,
  20. bool showNoMoreItemsIndicatorAsGridChild = true,
  21. int invisibleItemsThreshold = 3,
  22. WidgetBuilder? newPageErrorIndicatorBuilder,
  23. WidgetBuilder? newPageCompletedIndicatorBuilder,
  24. WidgetBuilder? newPageProgressIndicatorBuilder,
  25. AddItemWidgetBuilder<ItemType>? addItemBuilder,
  26. required PagedChildBuilderDelegate<ItemType> builderDelegate,
  27. required DataSource<PageKeyType, ItemType> pageDataSource,
  28. required SliverGridDelegate gridDelegate,
  29. WidgetBuilder? emptyBuilder,
  30. WidgetBuilder? loadingBuilder,
  31. ErrorBuilder? errorBuilder,
  32. WidgetBuilder? refreshBuilder,
})

Implementation

const PagingGridView({
  Key? key,
  this.isEnablePullToRefresh = true,
  this.padding = EdgeInsets.zero,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.addRepaintBoundaries = true,
  this.addAutomaticKeepAlives = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.semanticIndexCallback,
  this.itemExtent,
  this.showNewPageProgressIndicatorAsGridChild = true,
  this.showNewPageErrorIndicatorAsGridChild = true,
  this.showNoMoreItemsIndicatorAsGridChild = true,
  this.invisibleItemsThreshold = 3,
  this.newPageErrorIndicatorBuilder,
  this.newPageCompletedIndicatorBuilder,
  this.newPageProgressIndicatorBuilder,
  this.addItemBuilder,
  required PagedChildBuilderDelegate<ItemType> builderDelegate,
  required DataSource<PageKeyType, ItemType> pageDataSource,
  required this.gridDelegate,
  WidgetBuilder? emptyBuilder,
  WidgetBuilder? loadingBuilder,
  ErrorBuilder? errorBuilder,
  WidgetBuilder? refreshBuilder,
}) : super(
        builderDelegate: builderDelegate,
        emptyBuilder: emptyBuilder,
        loadingBuilder: loadingBuilder,
        errorBuilder: errorBuilder,
        pageDataSource: pageDataSource,
        refreshBuilder: refreshBuilder,
        key: key,
      );