PagingSilverBuilder<PageKeyType, ItemType> constructor
const
PagingSilverBuilder<PageKeyType, ItemType> ({
- Key? key,
- 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,
- required PagedChildBuilderDelegate<
ItemType> builderDelegate, - String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- required WidgetBuilder loadingListingBuilder,
- required WidgetBuilder errorListingBuilder,
- required WidgetBuilder completedListingBuilder,
- required WidgetBuilder refreshBuilder,
- required PagingStatus status,
Implementation
const PagingSilverBuilder({
Key? key,
this.padding = EdgeInsets.zero,
Axis scrollDirection = Axis.vertical,
bool reverse = false,
ScrollController? controller,
bool? primary,
ScrollPhysics? physics,
bool shrinkWrap = false,
this.addRepaintBoundaries = true,
this.addAutomaticKeepAlives = true,
this.addSemanticIndexes = true,
double? cacheExtent,
DragStartBehavior dragStartBehavior = DragStartBehavior.start,
ScrollViewKeyboardDismissBehavior keyboardDismissBehavior =
ScrollViewKeyboardDismissBehavior.manual,
required this.builderDelegate,
// Corresponds to [ScrollView.restorationId]
String? restorationId,
// Corresponds to [ScrollView.clipBehavior]
Clip clipBehavior = Clip.hardEdge,
required this.loadingListingBuilder,
required this.errorListingBuilder,
required this.completedListingBuilder,
required this.refreshBuilder,
required this.status,
}) : super(
key: key,
scrollDirection: scrollDirection,
reverse: reverse,
controller: controller,
primary: primary,
physics: physics,
shrinkWrap: shrinkWrap,
cacheExtent: cacheExtent,
dragStartBehavior: dragStartBehavior,
keyboardDismissBehavior: keyboardDismissBehavior,
restorationId: restorationId,
clipBehavior: clipBehavior,
);