CarouselIndicator constructor

const CarouselIndicator({
  1. Key? key,
  2. required int itemCount,
  3. required int currentIndex,
  4. Color activeColor = Colors.black,
  5. Color inactiveColor = Colors.grey,
  6. double activeWidth = 20.0,
  7. double activeHeight = 5.0,
  8. double inactiveWidth = 10.0,
  9. double inactiveHeight = 5.0,
  10. double spacing = 8.0,
})

Implementation

const CarouselIndicator({
  super.key,
  required this.itemCount,
  required this.currentIndex,
  this.activeColor = Colors.black,
  this.inactiveColor = Colors.grey,
  this.activeWidth = 20.0,
  this.activeHeight = 5.0,
  this.inactiveWidth = 10.0,
  this.inactiveHeight = 5.0,
  this.spacing = 8.0,
});