animationDuration property Null safety

double animationDuration

Duration of the series animation. It takes millisecond value as input.

Series will be animated while rendering. Animation is enabled by default, you can also control the duration of the animation using animationDuration property. You can disable the animation by setting 0 value to that property.

Defaults to 1500.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <LineSeries<SalesData, String>>[
      LineSeries<SalesData, String>(
        animationDuration: 1000,


final double animationDuration;