DotsIndicator constructor
const
DotsIndicator({
- Key? key,
- required int dotsCount,
- double position = 0.0,
- DotsDecorator decorator = const DotsDecorator(),
- Axis axis = Axis.horizontal,
- bool reversed = false,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- OnTap? onTap,
Implementation
const DotsIndicator({
super.key,
required this.dotsCount,
this.position = 0.0,
this.decorator = const DotsDecorator(),
this.axis = Axis.horizontal,
this.reversed = false,
this.mainAxisSize = MainAxisSize.min,
this.mainAxisAlignment = MainAxisAlignment.center,
this.onTap,
}) : assert(dotsCount > 0),
assert(position >= 0),
assert(
position < dotsCount,
"Position must be inferior than dotsCount",
);