DotsIndicator constructor

const DotsIndicator({
  1. Key? key,
  2. required int dotsCount,
  3. double position = 0.0,
  4. DotsDecorator decorator = const DotsDecorator(),
  5. Axis axis = Axis.horizontal,
  6. bool reversed = false,
  7. MainAxisSize mainAxisSize = MainAxisSize.min,
  8. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  9. 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",
      );