DivList<T> constructor

const DivList<T>({
  1. Key? key,
  2. required Future<bool> onLoad(
    1. int page,
    2. List<T> items,
    3. bool refresh
    ),
  3. required Widget itemBuilder(
    1. BuildContext context,
    2. T item,
    3. int index
    ),
  4. Widget headerBuilder(
    1. BuildContext context,
    2. List<T> items
    )?,
  5. Widget footerBuilder(
    1. BuildContext context,
    2. List<T> items
    )?,
  6. void init()?,
  7. ScrollPhysics? physics = const AlwaysScrollableScrollPhysics(),
  8. bool refresh = true,
  9. DivListData<T>? data,
  10. DivListStatus status = const DivListStatus(),
  11. bool reverse = false,
  12. bool shrinkWrap = false,
  13. ScrollController? controller,
  14. 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,
});