PreloadPageView.custom constructor
PreloadPageView.custom({
- Key? key,
- Axis scrollDirection = Axis.horizontal,
- bool reverse = false,
- PreloadPageController? controller,
- ScrollPhysics? physics,
- bool pageSnapping = true,
- ValueChanged<
int> ? onPageChanged, - required SliverChildDelegate childrenDelegate,
- int preloadPagesCount = 1,
Creates a scrollable list that works page by page with a custom child model.
Implementation
PreloadPageView.custom({
super.key,
this.scrollDirection = Axis.horizontal,
this.reverse = false,
PreloadPageController? controller,
this.physics,
this.pageSnapping = true,
this.onPageChanged,
required this.childrenDelegate,
this.preloadPagesCount = 1,
}) : controller = controller ?? _defaultPageController;