isVisible property

bool isVisible
final

Determines the visiblity of the trendline.

Defaults to true.

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

Implementation

final bool isVisible;