Swiper.builder constructor

Swiper.builder({
  1. Key? key,
  2. Axis direction = Axis.horizontal,
  3. required int childCount,
  4. 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 = false,
  11. bool reverse = false,
  12. AlignmentDirectional indicatorAlignment = AlignmentDirectional.bottomCenter,
})

Implementation

Swiper.builder({
  Key? key,
  this.direction = Axis.horizontal,
  required this.childCount,
  this.itemBuilder,
  this.autoStart = true,
  this.controller,
  this.indicator,
  this.speed = 300,
  this.interval = const Duration(seconds: 3),
  this.circular = false,
  this.reverse = false,
  this.indicatorAlignment = AlignmentDirectional.bottomCenter,
})  : _itemCount = childCount + ((circular && childCount > 1) ? 2 : 0),
      super(key: key);