isVisible property Null safety

bool isVisible
final

Toggles the visibility of the series.

Defaults to true.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                   isVisible:false,
               ),
             ],
       ));
}

Implementation

@override
final bool isVisible;