AnimatedSmoothIndicator constructor

const AnimatedSmoothIndicator({
  1. Key? key,
  2. required int activeIndex,
  3. required int count,
  4. Axis axisDirection = Axis.horizontal,
  5. TextDirection? textDirection,
  6. dynamic onDotClicked(
    1. int index
    )?,
  7. IndicatorEffect effect = const WormEffect(),
  8. Curve curve = Curves.easeInOut,
  9. Duration duration = const Duration(milliseconds: 300),
  10. VoidCallback? onEnd,
})

Default constructor

Implementation

const AnimatedSmoothIndicator({
  Key? key,
  required this.activeIndex,
  required this.count,
  this.axisDirection = Axis.horizontal,
  this.textDirection,
  this.onDotClicked,
  this.effect = const WormEffect(),
  Curve curve = Curves.easeInOut,
  Duration duration = const Duration(milliseconds: 300),
  VoidCallback? onEnd,
}) : super(
        key: key,
        duration: duration,
        curve: curve,
        onEnd: onEnd,
      );