SnappingPageScroll.builder constructor

SnappingPageScroll.builder({
  1. Key? key,
  2. required NullableIndexedWidgetBuilder itemBuilder,
  3. ChildIndexGetter? findChildIndexCallback,
  4. ValueChanged<int>? onPageChanged,
  5. Axis scrollDirection = Axis.horizontal,
  6. bool showPageIndicator = false,
  7. Widget? currentPageIndicator,
  8. Widget? otherPageIndicator,
  9. PageController? controller,
  10. 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,
      );