Carousel constructor

Carousel({
  1. List<DslWidget>? children,
  2. int initialPage = 1,
  3. bool infiniteScroll = true,
  4. double viewportFraction = 0.9,
  5. bool horizontal = true,
  6. double? width,
  7. double? height,
  8. double shrinkFactor = 0.25,
  9. bool centerItems = false,
  10. bool autoPlay = false,
  11. int autoPlayAnimationDurationMillis = 800,
  12. int autoPlayIntervalMillis = 4000,
  13. bool replayAtLastItem = false,
  14. String? name,
  15. 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));