ListViewPagination.separated constructor
const
ListViewPagination.separated({
- required Widget itemBuilder(
- BuildContext context,
- int index
- required int itemCount,
- required VoidCallback? nextData,
- required Widget separatorBuilder(
- BuildContext context,
- int index
- Key? key,
- int? semanticChildCount,
- double? itemExtent,
- 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 = 300,
- bool hasNext = false,
Implementation
const ListViewPagination.separated({
required this.itemBuilder,
required this.itemCount,
required this.nextData,
required Widget Function(BuildContext context, int index) separatorBuilder,
super.key,
this.semanticChildCount,
this.itemExtent,
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 = 300,
this.hasNext = false,
}) : _separated = true,
_separatorBuilder = separatorBuilder;