name property

String? name
final

Provides the name for trendline.

Defaults to type of the trendline chosen.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <CartesianSeries<ChartData,String>>[
      LineSeries<ChartData,String>(
        trendlines: <TrendLine>[
          Trendline(name: 'Trendline1')
        ]
      )
    ]
  );
}

Implementation

final String? name;