LineChart constructor
const
LineChart(
- LineChartData data, {
- Key? chartRendererKey,
- Key? key,
- Duration duration = const Duration(milliseconds: 150),
- Curve curve = Curves.linear,
data determines how the LineChart should be look like,
when you make any change in the LineChartData, it updates
new values with animation, and duration is swapAnimationDuration
.
also you can change the swapAnimationCurve
which default is Curves.linear.
Implementation
const LineChart(
this.data, {
this.chartRendererKey,
super.key,
super.duration = const Duration(milliseconds: 150),
super.curve = Curves.linear,
});