ModelListView<T>.sliver constructor

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

Implementation

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