ListViewPagination constructor

const ListViewPagination({
  1. required Widget itemBuilder(
    1. BuildContext context,
    2. int index
    ),
  2. required int itemCount,
  3. required VoidCallback? nextData,
  4. Key? key,
  5. Axis scrollDirection = Axis.vertical,
  6. bool reverse = false,
  7. EdgeInsetsGeometry? padding,
  8. bool addAutomaticKeepAlives = true,
  9. bool addRepaintBoundaries = true,
  10. bool addSemanticIndexes = true,
  11. double? cacheExtent,
  12. ScrollController? controller,
  13. bool? primary,
  14. ScrollPhysics? physics,
  15. bool shrinkWrap = false,
  16. Widget? loadingWidget,
  17. double scrollThreshold = 400,
  18. bool hasNext = false,
})

Implementation

const ListViewPagination({
  required this.itemBuilder,
  required this.itemCount,
  required this.nextData,
  super.key,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.padding,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.loadingWidget,
  this.scrollThreshold = 400,
  this.hasNext = false,
})  : _separated = false,
      _separatorBuilder = null,
      semanticChildCount = null,
      itemExtent = null;