SnappingPageScroll.builder constructor
SnappingPageScroll.builder({
- Key? key,
- required NullableIndexedWidgetBuilder itemBuilder,
- ChildIndexGetter? findChildIndexCallback,
- ValueChanged<
int> ? onPageChanged, - Axis scrollDirection = Axis.horizontal,
- bool showPageIndicator = false,
- Widget? currentPageIndicator,
- Widget? otherPageIndicator,
- PageController? controller,
- int? itemCount,
Implementation
SnappingPageScroll.builder({
super.key,
required NullableIndexedWidgetBuilder itemBuilder,
ChildIndexGetter? findChildIndexCallback,
this.onPageChanged,
this.scrollDirection = Axis.horizontal,
this.showPageIndicator = false,
this.currentPageIndicator,
this.otherPageIndicator,
this.controller,
int? itemCount,
}) : _childrenDelegate = SliverChildBuilderDelegate(
itemBuilder,
findChildIndexCallback: findChildIndexCallback,
childCount: itemCount,
);