selectionSettings property Null safety

SelectionSettings selectionSettings
final

Customizes the data points or series on selection.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                 selectionSettings: SelectionSettings(
                   selectedColor: Colors.red,
                   unselectedColor: Colors.grey,
                   selectedOpacity : 0.8,
                   unselectedOpacity: 0.4
                 ),
               ),
             ],
       ));
}

Implementation

@override
// ignore: deprecated_member_use_from_same_package
final SelectionSettings selectionSettings;