CustomPaginableListView.separated constructor

const CustomPaginableListView.separated({
  1. Key? key,
  2. Axis scrollDirection = Axis.vertical,
  3. bool reverse = false,
  4. ScrollController? controller,
  5. bool? primary,
  6. ScrollPhysics? physics,
  7. bool shrinkWrap = false,
  8. EdgeInsetsGeometry? padding,
  9. required Future<void> loadMore(),
  10. required Widget progressIndicatorWidget,
  11. required Widget errorIndicatorWidget(
    1. Exception exception,
    2. void tryAgain()
    ),
  12. required IndexedWidgetBuilder itemBuilder,
  13. required IndexedWidgetBuilder? separatorBuilder,
  14. required int itemCount,
  15. bool addAutomaticKeepAlives = true,
  16. bool addRepaintBoundaries = true,
  17. bool addSemanticIndexes = true,
  18. double? cacheExtent,
  19. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  20. ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  21. String? restorationId,
  22. Clip clipBehavior = Clip.hardEdge,
})

Implementation

const CustomPaginableListView.separated({
  Key? key,
  this.scrollDirection = Axis.vertical,
  this.reverse = false,
  this.controller,
  this.primary,
  this.physics,
  this.shrinkWrap = false,
  this.padding,
  required this.loadMore,
  required this.progressIndicatorWidget,
  required this.errorIndicatorWidget,
  required this.itemBuilder,
  required this.separatorBuilder,
  required this.itemCount,
  this.addAutomaticKeepAlives = true,
  this.addRepaintBoundaries = true,
  this.addSemanticIndexes = true,
  this.cacheExtent,
  this.dragStartBehavior = DragStartBehavior.start,
  this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
  this.restorationId,
  this.clipBehavior = Clip.hardEdge,
})  : _isListViewSeparated = true,
      itemExtent = null,
      prototypeItem = null,
      semanticChildCount = null,
      super(key: key);