isVisibleInLegend property

bool isVisibleInLegend
final

Show/hides the legend for trenline.

Defaults to true.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <CartseianSeries<dynamic,dynamic>>[
             LineSeries<dynamic,String>(
               trendlines: <TrendLine>[
                 Trendline(isVisibleInLegend: true)
               ])
           ]
       ));
}

Implementation

final bool isVisibleInLegend;