ModelListView<T>.withScrollController constructor
const
ModelListView<T>.withScrollController ({
- Key? key,
- required List<
T> list, - required Future<
void> load(), - required bool loadedAll,
- required ModelListViewBuilder<
T> builder, - bool doNotLoadOnInit = false,
- Future<
void> refresh()?, - String? error,
- ScrollController? scrollController,
- double treshold = 200,
- Widget errorBuilder(
- BuildContext context,
- String error
- Widget? loadingWidget,
- Widget? noResultsWidget,
- Widget? bottomLoader,
- Widget? firstChild,
- 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);