PagingListView<PageKeyType, ItemType> constructor
const
PagingListView<PageKeyType, ItemType> ({
- Key? key,
- bool isEnablePullToRefresh = true,
- EdgeInsets padding = EdgeInsets.zero,
- Axis scrollDirection = Axis.vertical,
- bool reverse = false,
- ScrollController? controller,
- bool? primary,
- ScrollPhysics? physics,
- bool shrinkWrap = false,
- bool addRepaintBoundaries = true,
- bool addAutomaticKeepAlives = true,
- bool addSemanticIndexes = true,
- double? cacheExtent,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- ScrollViewKeyboardDismissBehavior keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
- SemanticIndexCallback? semanticIndexCallback,
- double? itemExtent,
- int invisibleItemsThreshold = 3,
- WidgetBuilder? newPageErrorIndicatorBuilder,
- WidgetBuilder? newPageCompletedIndicatorBuilder,
- NewPageWidgetBuilder? newPageProgressIndicatorBuilder,
- AddItemWidgetBuilder<
ItemType> ? addItemBuilder, - required PagedChildBuilderDelegate<
ItemType> builderDelegate, - required DataSource<
PageKeyType, ItemType> pageDataSource, - WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- ErrorBuilder? errorBuilder,
- WidgetBuilder? refreshBuilder,
Implementation
const PagingListView({
Key? key,
this.isEnablePullToRefresh = true,
this.padding = EdgeInsets.zero,
this.scrollDirection = Axis.vertical,
this.reverse = false,
this.controller,
this.primary,
this.physics,
this.shrinkWrap = false,
this.addRepaintBoundaries = true,
this.addAutomaticKeepAlives = true,
this.addSemanticIndexes = true,
this.cacheExtent,
this.dragStartBehavior = DragStartBehavior.start,
this.keyboardDismissBehavior = ScrollViewKeyboardDismissBehavior.manual,
this.semanticIndexCallback,
this.itemExtent,
this.invisibleItemsThreshold = 3,
this.newPageErrorIndicatorBuilder,
this.newPageCompletedIndicatorBuilder,
this.newPageProgressIndicatorBuilder,
this.addItemBuilder,
required PagedChildBuilderDelegate<ItemType> builderDelegate,
required DataSource<PageKeyType, ItemType> pageDataSource,
WidgetBuilder? emptyBuilder,
WidgetBuilder? loadingBuilder,
ErrorBuilder? errorBuilder,
WidgetBuilder? refreshBuilder,
}) : _separatorBuilder = null,
super(
builderDelegate: builderDelegate,
emptyBuilder: emptyBuilder,
loadingBuilder: loadingBuilder,
errorBuilder: errorBuilder,
pageDataSource: pageDataSource,
refreshBuilder: refreshBuilder,
key: key,
);