AntdIndicatorController<T extends AntdTab> constructor

AntdIndicatorController<T extends AntdTab>({
  1. required TickerProvider vsync,
  2. Duration duration = const Duration(milliseconds: 300),
  3. Curve curve = Curves.ease,
})

Implementation

AntdIndicatorController({
  required TickerProvider vsync,
  Duration duration = const Duration(milliseconds: 300),
  Curve curve = Curves.ease,
}) {
  _animationController = AnimationController(
    duration: duration,
    vsync: vsync,
  );

  _animation = Tween<double>(begin: 0, end: 0).animate(
    CurvedAnimation(parent: _animationController!, curve: curve),
  );
}