ExtendedPageView.custom constructor
ExtendedPageView.custom({
- Key? key,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- PageController? controller,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- ValueChanged<
int> ? onPageChanged, - required SliverChildDelegate childrenDelegate,
- DragStartBehavior dragStartBehavior = DragStartBehavior.start,
- bool allowImplicitScrolling = false,
- String? restorationId,
- Clip clipBehavior = Clip.hardEdge,
- int cacheExtent = 0,
- bool shouldIgnorePointerWhenScrolling = true,
Creates a scrollable list that works page by page with a custom child model.
Implementation
ExtendedPageView.custom({
Key? key,
this.scrollDirection = Axis.horizontal,
this.reverse = false,
PageController? controller,
this.physics,
this.pageSnapping = true,
this.onPageChanged,
required this.childrenDelegate,
this.dragStartBehavior = DragStartBehavior.start,
this.allowImplicitScrolling = false,
this.restorationId,
this.clipBehavior = Clip.hardEdge,
this.cacheExtent = 0,
this.shouldIgnorePointerWhenScrolling = true,
}) : controller = controller ?? _defaultPageController,
super(key: key);