InfiniteListView.separated constructor
const
InfiniteListView.separated({
- Key? key,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- EdgeInsetsGeometry? padding,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- double? itemExtent,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- required PaginationDelegate delegate,
- required IndexedWidgetBuilder separatorBuilder,
- bool shrinkWrap = false,
Implementation
const InfiniteListView.separated({
super.key,
super.scrollDirection,
super.reverse,
super.controller,
super.primary,
super.physics,
super.padding,
super.cacheExtent,
super.dragStartBehavior,
super.keyboardDismissBehavior,
super.restorationId,
super.clipBehavior,
this.itemExtent,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
required this.delegate,
required IndexedWidgetBuilder separatorBuilder,
super.shrinkWrap,
}) : prototypeItem = null,
_enableShrinkWrapForFirstPageIndicators = shrinkWrap,
_separatorBuilder = separatorBuilder;