Slider constructor

Slider({
  1. required List<View?> slides,
  2. String height = '480px',
  3. bool autoPlay = true,
  4. Duration autoPlayInterval = const Duration(seconds: 5),
  5. Duration transitionDuration = const Duration(milliseconds: 800),
  6. String? className,
  7. Map<String, Object?> props = const {},
  8. Map<String, Object?> style = const {},
  9. 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;