RadarChart constructor

const RadarChart(
  1. RadarChartData data, {
  2. Key? key,
  3. @Deprecated('Please use [duration] instead') Duration? swapAnimationDuration,
  4. Duration duration = const Duration(milliseconds: 150),
  5. @Deprecated('Please use [curve] instead') Curve? swapAnimationCurve,
  6. Curve curve = 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 duration. also you can change the curve which default is Curves.linear.

Implementation

const RadarChart(
  this.data, {
  super.key,
  @Deprecated('Please use [duration] instead')
  Duration? swapAnimationDuration,
  Duration duration = const Duration(milliseconds: 150),
  @Deprecated('Please use [curve] instead') Curve? swapAnimationCurve,
  Curve curve = Curves.linear,
}) : super(
        duration: swapAnimationDuration ?? duration,
        curve: swapAnimationCurve ?? curve,
      );