ModelListView<T>.gridSliver constructor

const ModelListView<T>.gridSliver({
  1. Key? key,
  2. required List<T> list,
  3. required Future<void> load(),
  4. required bool loadedAll,
  5. required ModelListViewBuilder<T> builder,
  6. required ScrollController? scrollController,
  7. double treshold = 400,
  8. bool doNotLoadOnInit = false,
  9. String? error,
  10. Widget errorBuilder(
    1. BuildContext context,
    2. String error
    )?,
  11. Widget? loadingWidget,
  12. Widget? noResultsWidget,
  13. Widget? bottomLoader,
  14. Widget? firstChild,
})

Implementation

const ModelListView.gridSliver({
  Key? key,
  required this.list, required this.load, required this.loadedAll, required this.builder,
  required this.scrollController, this.treshold = 400,
  this.doNotLoadOnInit = false,
  this.error,
  this.errorBuilder, this.loadingWidget, this.noResultsWidget, this.bottomLoader ,
  this.firstChild
}) :
  refresh = null,
  _sliver = true,
  _grid = true,
  reverse = false,
  super(key: key);