CustomPaginableListView.separated constructor
const
CustomPaginableListView.separated({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- required Future<
void> loadMore(), - required Widget progressIndicatorWidget,
- required Widget errorIndicatorWidget(
- Exception exception,
- void tryAgain()
- required IndexedWidgetBuilder itemBuilder,
- required IndexedWidgetBuilder? separatorBuilder,
- required int itemCount,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- 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);