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