ModelListView<T>.withScrollController constructor

const ModelListView<T>.withScrollController({
  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. Future<void> refresh()?,
  8. String? error,
  9. ScrollController? scrollController,
  10. double treshold = 200,
  11. Widget errorBuilder(
    1. BuildContext context,
    2. String error
    )?,
  12. Widget? loadingWidget,
  13. Widget? noResultsWidget,
  14. Widget? bottomLoader,
  15. Widget? firstChild,
  16. bool reverse = false,
})

Implementation

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