animationDuration property Null safety

double? animationDuration
final

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

Defaults to 1500

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <LineSeries<SalesData, String>>[
                  LineSeries<SalesData, String>(
                      animationDuration: 1500,
                 ),
            ],
       ));
}

Implementation

final double? animationDuration;