ExtendedImageGesturePageView constructor

ExtendedImageGesturePageView({
  1. Key? key,
  2. Axis scrollDirection = Axis.horizontal,
  3. bool reverse = false,
  4. ExtendedPageController? controller,
  5. ScrollPhysics? physics,
  6. bool pageSnapping = true,
  7. ValueChanged<int>? onPageChanged,
  8. List<Widget> children = const <Widget>[],
  9. CanScrollPage? canScrollPage,
  10. int preloadPagesCount = 0,
})

Implementation

ExtendedImageGesturePageView({
  Key? key,
  this.scrollDirection = Axis.horizontal,
  this.reverse = false,
  ExtendedPageController? controller,
  ScrollPhysics? physics,
  this.pageSnapping = true,
  this.onPageChanged,
  List<Widget> children = const <Widget>[],
  CanScrollPage? canScrollPage,
  this.preloadPagesCount = 0,
})  : controller = controller ?? _defaultPageController,
      childrenDelegate = SliverChildListDelegate(children),
      physics = physics != null
          ? _defaultScrollPhysics.applyTo(physics)
          : _defaultScrollPhysics,
      canScrollPage = canScrollPage ?? _defaultCanScrollPage,
      super(key: key);