CarouselIndicator constructor

CarouselIndicator({
  1. Key? key,
  2. double width = 20.0,
  3. double height = 6,
  4. double space = 5.0,
  5. int? count,
  6. double cornerRadius = 6,
  7. int animationDuration = 300,
  8. Color color = Colors.white30,
  9. int? index,
  10. Color activeColor = Colors.white,
})

Implementation

CarouselIndicator({
  Key? key,
  this.width: 20.0,
  this.height: 6,
  this.space: 5.0,
  this.count,
  this.cornerRadius: 6,
  this.animationDuration: 300,
  this.color: Colors.white30,
  this.index,
  this.activeColor: Colors.white,
})  : assert(count != null && count != 0),
      assert(index != null && index >= 0),
      super(key: key);