CarouselIndicator constructor
const
CarouselIndicator({
- Key? key,
- required int itemCount,
- required int currentIndex,
- Color activeColor = Colors.black,
- Color inactiveColor = Colors.grey,
- double activeWidth = 20.0,
- double activeHeight = 5.0,
- double inactiveWidth = 10.0,
- double inactiveHeight = 5.0,
- double spacing = 8.0,
- Color activeBorderColor = Colors.transparent,
- double activeBorderWidth = 0.0,
- Color inactiveBorderColor = Colors.transparent,
- double inactiveBorderWidth = 0.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,
this.activeBorderColor = Colors.transparent,
this.activeBorderWidth = 0.0,
this.inactiveBorderColor = Colors.transparent,
this.inactiveBorderWidth = 0.0,
});