RadarChart constructor
const
RadarChart(
- RadarChartData data, {
- Key? 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,
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,
);