vSwiper method

Widget vSwiper(
  1. {Key key,
  2. double height,
  3. double aspectRatio = 16 / 9,
  4. bool enableInfiniteScroll = true,
  5. bool enlargeCenterPage = false,
  6. dynamic onPageChanged(
    1. int index
    ),
  7. ScrollPhysics scrollPhysics,
  8. Axis scrollDirection = Axis.vertical}
)

Extension for using VxSwiper vertically directly with list of widgets

Implementation

Widget vSwiper({
  Key key,
  double height,
  double aspectRatio = 16 / 9,
  bool enableInfiniteScroll = true,
  bool enlargeCenterPage = false,
  Function(int index) onPageChanged,
  ScrollPhysics scrollPhysics,
  Axis scrollDirection = Axis.vertical,
}) =>
    VxSwiper(
      items: this,
      height: height,
      aspectRatio: aspectRatio,
      enableInfiniteScroll: enableInfiniteScroll,
      enlargeCenterPage: enlargeCenterPage,
      onPageChanged: onPageChanged,
      scrollPhysics: scrollPhysics,
      scrollDirection: scrollDirection,
    );