PagingGridView<PageKeyType, ItemType> constructor
const
PagingGridView<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,
- bool showNewPageProgressIndicatorAsGridChild = true,
- bool showNewPageErrorIndicatorAsGridChild = true,
- bool showNoMoreItemsIndicatorAsGridChild = true,
- int invisibleItemsThreshold = 3,
- WidgetBuilder? newPageErrorIndicatorBuilder,
- WidgetBuilder? newPageCompletedIndicatorBuilder,
- WidgetBuilder? newPageProgressIndicatorBuilder,
- AddItemWidgetBuilder<
ItemType> ? addItemBuilder, - required PagedChildBuilderDelegate<
ItemType> builderDelegate, - required DataSource<
PageKeyType, ItemType> pageDataSource, - required SliverGridDelegate gridDelegate,
- WidgetBuilder? emptyBuilder,
- WidgetBuilder? loadingBuilder,
- ErrorBuilder? errorBuilder,
- WidgetBuilder? refreshBuilder,
Implementation
const PagingGridView({
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.showNewPageProgressIndicatorAsGridChild = true,
this.showNewPageErrorIndicatorAsGridChild = true,
this.showNoMoreItemsIndicatorAsGridChild = true,
this.invisibleItemsThreshold = 3,
this.newPageErrorIndicatorBuilder,
this.newPageCompletedIndicatorBuilder,
this.newPageProgressIndicatorBuilder,
this.addItemBuilder,
required PagedChildBuilderDelegate<ItemType> builderDelegate,
required DataSource<PageKeyType, ItemType> pageDataSource,
required this.gridDelegate,
WidgetBuilder? emptyBuilder,
WidgetBuilder? loadingBuilder,
ErrorBuilder? errorBuilder,
WidgetBuilder? refreshBuilder,
}) : super(
builderDelegate: builderDelegate,
emptyBuilder: emptyBuilder,
loadingBuilder: loadingBuilder,
errorBuilder: errorBuilder,
pageDataSource: pageDataSource,
refreshBuilder: refreshBuilder,
key: key,
);