unselectedOpacity property Null safety

double unselectedOpacity
final

Opacity of the unselected series or data point.

Defaults to 0.5.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                 selectionBehavior: SelectionBehavior(
                   unselectedOpacity: 0.4,
                 ),
               ),
             ],
       ));
}
``

Implementation

final double unselectedOpacity;