ReadyList<T, Args, TController extends BaseReadyListController<T, Args>>.grid constructor

const ReadyList<T, Args, TController extends BaseReadyListController<T, Args>>.grid({
  1. Key? key,
  2. ScrollController? scrollController,
  3. ReadyListWidgetBuilder<T, Args>? headerSlivers,
  4. StateResultCallBack<bool>? handleNestedScrollViewOverlap,
  5. ReadyListWidgetBuilder<T, Args>? innerFooterSlivers,
  6. ReadyListWidgetBuilder<T, Args>? footerSlivers,
  7. required ReadyListItemBuilder<T> buildItem,
  8. GridDelegateCallback gridDelegate = Grids.columns_2,
  9. required TController controller,
  10. Iterable<T> filterItems(
    1. Iterable<T> items
    )?,
  11. bool? allowFakeItems,
  12. PlaceholdersConfig? placeholdersConfig,
  13. bool? showNoMoreText,
  14. bool? allowRefresh,
  15. bool? allowLoadNext,
  16. String? noMoreText,
  17. String? loadMoreText,
  18. EdgeInsetsGeometry? padding,
  19. int? pageSize,
  20. bool? reverse,
  21. bool keepAlive = true,
  22. GradientGetterCallback? shimmerScopeGradient,
  23. StateResultCallBack<bool>? shrinkWrap,
  24. AxisConfig? axis,
  25. ScrollPhysics? physics,
  26. List<Widget>? topLevelFooterSlivers,
  27. List<Widget>? topLevelHeaderSlivers,
})

SliverStaggeredGridDelegateWithFixedCrossAxisCount SliverStaggeredGridDelegateWithMaxCrossAxisExtent You can use Grids.columns_1 Grids.columns_2 etc...

Implementation

const ReadyList.grid({
  Key? key,
  this.scrollController,
  this.headerSlivers,
  this.handleNestedScrollViewOverlap,
  this.innerFooterSlivers,
  this.footerSlivers,
  required ReadyListItemBuilder<T> buildItem,
  GridDelegateCallback gridDelegate = Grids.columns_2,
  required this.controller,
  this.filterItems,
  this.allowFakeItems,
  this.placeholdersConfig,
  this.showNoMoreText,
  this.allowRefresh,
  this.allowLoadNext,
  this.noMoreText,
  this.loadMoreText,
  this.padding,
  this.pageSize,
  this.reverse,
  this.keepAlive = true,
  this.shimmerScopeGradient,
  this.shrinkWrap,
  this.axis,
  this.physics,
  this.topLevelFooterSlivers,
  this.topLevelHeaderSlivers,
})  : _slivers = null,
      _buildItem = buildItem,
      _reorderOptions = null,
      _gridDelegate = gridDelegate,
      super(key: key);