RadarChart constructor

const RadarChart(
  1. RadarChartData data, {
  2. Key? key,
  3. Duration swapAnimationDuration = const Duration(milliseconds: 150),
  4. Curve swapAnimationCurve = Curves.linear,
})

data determines how the RadarChart should be look like, when you make any change in the RadarChart, it updates new values with animation, and duration is swapAnimationDuration. also you can change the swapAnimationCurve which default is Curves.linear.

Implementation

const RadarChart(
  this.data, {
  super.key,
  Duration swapAnimationDuration = const Duration(milliseconds: 150),
  Curve swapAnimationCurve = Curves.linear,
}) : super(
        duration: swapAnimationDuration,
        curve: swapAnimationCurve,
      );