DivList<T> constructor
const
DivList<T> ({
- Key? key,
- required Future<
bool> onLoad(), - required Widget itemBuilder(
- BuildContext context,
- T item,
- int index
- Widget headerBuilder(
- BuildContext context,
- List<
T> items
- void init()?,
- ScrollPhysics? physics = const AlwaysScrollableScrollPhysics(),
- bool refresh = true,
- DivListData<
T> ? data, - DivListStatus status = const DivListStatus(),
- bool reverse = false,
- bool shrinkWrap = false,
- ScrollController? controller,
- bool primary = false,
Implementation
const DivList({
super.key,
required this.onLoad,
required this.itemBuilder,
this.headerBuilder,
this.footerBuilder,
this.init,
this.physics = const AlwaysScrollableScrollPhysics(),
this.refresh = true,
this.data,
this.status = const DivListStatus(),
this.reverse = false,
this.shrinkWrap = false,
this.controller,
this.primary = false,
});