AntdIndicatorController<T extends AntdTab> constructor
AntdIndicatorController<T extends AntdTab> ({
- required TickerProvider vsync,
- Duration duration = const Duration(milliseconds: 300),
- 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),
);
}