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. SwiperIndicator? indicator,
  8. int speed = 300,
  9. Duration interval = const Duration(seconds: 3),
  10. bool circular = true,
  11. bool reverse = false,
  12. AlignmentDirectional indicatorAlignment = AlignmentDirectional.bottomCenter,
  13. double viewportFraction = 1.0,
  14. 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.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);