ChartAnimationController constructor
ChartAnimationController({
- required TickerProvider vsync,
- ChartAnimationPreset preset = ChartAnimationPreset.grow,
Implementation
ChartAnimationController({
required this.vsync,
this.preset = ChartAnimationPreset.grow,
}) {
_ctrl = AnimationController(duration: preset.duration, vsync: vsync);
_curved = CurvedAnimation(parent: _ctrl, curve: preset.curve);
}