Swiper.builder constructor

const Swiper.builder({
  1. Key? key,
  2. Axis direction = Axis.horizontal,
  3. required int childCount,
  4. required IndexedWidgetBuilder itemBuilder,
  5. bool autoStart = true,
  6. SwiperController? controller,
  7. Widget? mask,
  8. SwiperIndicator? indicator,
  9. int speed = 300,
  10. Duration interval = const Duration(seconds: 3),
  11. bool circular = true,
  12. bool reverse = false,
  13. AlignmentDirectional indicatorAlignment = AlignmentDirectional.bottomCenter,
  14. double viewportFraction = 1.0,
  15. ValueChanged<int>? onChanged,
})

Implementation

const Swiper.builder({
  Key? key,
  this.direction = Axis.horizontal,
  required this.childCount,
  required this.itemBuilder,
  this.autoStart = true,
  this.controller,
  this.mask,
  this.indicator,
  this.speed = 300,
  this.interval = const Duration(seconds: 3),
  this.circular = true,
  this.reverse = false,
  this.indicatorAlignment = AlignmentDirectional.bottomCenter,
  this.viewportFraction = 1.0,
  this.onChanged,
})  : children = null,
      super(key: key);