PagedListView<PageKeyType, ItemType>.separated constructor
const
PagedListView<PageKeyType, ItemType>.separated ({
- required PagingState<
PageKeyType, ItemType> state, - required NextPageCallback fetchNextPage,
- required PagedChildBuilderDelegate<
ItemType> builderDelegate, - required IndexedWidgetBuilder separatorBuilder,
- ScrollController? scrollController,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- EdgeInsetsGeometry? padding,
- double? itemExtent,
- bool addAutomaticKeepAlives = true,
- bool addRepaintBoundaries = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior? keyboardDismissBehavior,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- Key? key,
Implementation
const PagedListView.separated({
required this.state,
required this.fetchNextPage,
required this.builderDelegate,
required IndexedWidgetBuilder separatorBuilder,
// Matches [ScrollView.controller].
ScrollController? scrollController,
// Matches [ScrollView.scrollDirection].
super.scrollDirection,
// Matches [ScrollView.reverse].
super.reverse,
// Matches [ScrollView.primary].
super.primary,
// Matches [ScrollView.physics].
super.physics,
// Matches [ScrollView.shrinkWrap].
super.shrinkWrap,
// Matches [BoxScrollView.padding].
super.padding,
this.itemExtent,
this.addAutomaticKeepAlives = true,
this.addRepaintBoundaries = true,
this.addSemanticIndexes = true,
// Matches [ScrollView.cacheExtent]
super.cacheExtent,
// Matches [ScrollView.dragStartBehavior]
super.dragStartBehavior,
// Matches [ScrollView.keyboardDismissBehavior]
super.keyboardDismissBehavior,
// Matches [ScrollView.restorationId]
super.restorationId,
// Matches [ScrollView.clipBehavior]
super.clipBehavior,
super.key,
}) : prototypeItem = null,
_shrinkWrapFirstPageIndicators = shrinkWrap,
_separatorBuilder = separatorBuilder,
super(
controller: scrollController,
);