opacity property Null safety

double opacity
final

Opacity of the series.

The value ranges from 0 to 1. It used to control the transparency of the legend icon shape.

Defaults to 1

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

Implementation

@override
final double opacity;