isVisibleInLegend property

bool isVisibleInLegend
final

Show/hides the legend for trendline.

Defaults to true.

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

Implementation

final bool isVisibleInLegend;