Slider constructor
Slider({
- required List<
View?> slides, - String height = '480px',
- bool autoPlay = true,
- Duration autoPlayInterval = const Duration(seconds: 5),
- Duration transitionDuration = const Duration(milliseconds: 800),
- String? className,
- Map<
String, Object?> props = const {}, - Map<
String, Object?> style = const {}, - DartStyle? dartStyle,
Creates a slider.
Implementation
Slider({
required this.slides,
this.height = '480px',
this.autoPlay = true,
this.autoPlayInterval = const Duration(seconds: 5),
this.transitionDuration = const Duration(milliseconds: 800),
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : _className = className,
_props = props,
_style = style,
_dartStyle = dartStyle;