Carousel3DWidget constructor

Carousel3DWidget(
  1. {Key key,
  2. bool loop = true,
  3. int duration = 1000,
  4. ValueChanged<int> onChanged,
  5. int index = 0,
  6. int itemCount,
  7. double viewportFraction = 0.6,
  8. IndexedWidgetBuilder itemBuilder,
  9. bool autoPlay = true,
  10. int autoPlayDelay = 1500,
  11. double scale = 0.7}
)

Implementation

Carousel3DWidget(
    {Key key,
    this.loop = true,
    this.duration = 1000,
    this.onChanged,
    this.index = 0,
    this.itemCount,
    this.viewportFraction = 0.6,
    this.itemBuilder,
    this.autoPlay = true,
    this.autoPlayDelay = 1500,
    this.scale = 0.7})
    : assert(itemBuilder != null || itemCount != null,
          "itemBuilder and transformItemBuilder must not be both null"),
      super(key: key);