InfiniteListView.separated constructor

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

Implementation

const InfiniteListView.separated({
  required this.itemBuilder,
  required this.itemCount,
  required this.nextData,
  required Widget Function(BuildContext, int) 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;