ListViewPagination constructor
const
ListViewPagination({
- required Widget itemBuilder(
- BuildContext context,
- int index
- required int itemCount,
- required VoidCallback? nextData,
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- EdgeInsetsGeometry? padding,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- Widget? loadingWidget,
- double scrollThreshold = 400,
- 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;