Swiper.builder constructor
Swiper.builder({
- Key? key,
- Axis direction = Axis.horizontal,
- required int childCount,
- IndexedWidgetBuilder? itemBuilder,
- bool autoStart = true,
- SwiperController? controller,
- SwiperIndicator? indicator,
- int speed = 300,
- Duration interval = const Duration(seconds: 3),
- bool circular = false,
- bool reverse = false,
- 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);