isVisible property

bool isVisible
final

Determines the visibility of the trendline.

Defaults to true.

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

Implementation

final bool isVisible;