trendlines property

List<Trendline>? trendlines
final

Customizes the trendlines.

Trendline are used to mark the specific area of interest in the plot area with texts, shapes, or images.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
series: <LineSeries<ChartData, num>>[
                  LineSeries<ChartData, num>(
                  trendlines: <ChartTrendline>[

                ])
            ],
       ));
}

Implementation

final List<Trendline>? trendlines;