Carousel constructor
Carousel({
- List<
DslWidget> ? children, - int initialPage = 1,
- bool infiniteScroll = true,
- double viewportFraction = 0.9,
- bool horizontal = true,
- double? width,
- double? height,
- double shrinkFactor = 0.25,
- bool centerItems = false,
- bool autoPlay = false,
- int autoPlayAnimationDurationMillis = 800,
- int autoPlayIntervalMillis = 4000,
- bool replayAtLastItem = false,
- String? name,
- Object? visible,
Implementation
Carousel({
List<DslWidget>? children,
this.initialPage = 1,
this.infiniteScroll = true,
this.viewportFraction = 0.9,
this.horizontal = true,
this.width,
this.height,
this.shrinkFactor = 0.25,
this.centerItems = false,
this.autoPlay = false,
this.autoPlayAnimationDurationMillis = 800,
this.autoPlayIntervalMillis = 4000,
this.replayAtLastItem = false,
String? name,
Object? visible,
}) : children = List.unmodifiable(children ?? const <DslWidget>[]),
super(name: name, visible: _normalizeVisibility(visible));