ChartAnimationController constructor

ChartAnimationController({
  1. required TickerProvider vsync,
  2. 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);
}