ModelListView<T>.grid constructor
const
ModelListView<T>.grid ({
- Key? key,
- required List<
T> list, - required Future<
void> load(), - required bool loadedAll,
- required ModelListViewBuilder<
T> builder, - Future<
void> refresh()?, - String? error,
- bool doNotLoadOnInit = false,
- ScrollController? scrollController,
- double treshold = 400,
- Widget errorBuilder(
- BuildContext context,
- String error
- Widget? loadingWidget,
- Widget? noResultsWidget,
- Widget? bottomLoader,
- Widget? firstChild,
- bool reverse = false,
Implementation
const ModelListView.grid({
Key? key,
required this.list, required this.load, required this.loadedAll, required this.builder,
this.refresh, this.error,
this.doNotLoadOnInit = false,
this.scrollController, this.treshold = 400, //più alto rispetto alla list perchè il bottom loader occupa una riga di altezza
this.errorBuilder, this.loadingWidget, this.noResultsWidget, this.bottomLoader ,
this.firstChild,
this.reverse = false
}) :
_sliver = false,
_grid = true,
super(key: key);