enableMultiSelection property Null safety

bool enableMultiSelection
final

Enables or disables the multiple data points or series selection.

Defaults to false.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           enableMultiSelection: true,
           series: <BarSeries<SalesData, num>>[
               BarSeries<SalesData, num>(
                 selectionBehavior: SelectionBehavior(
                   selectedColor: Colors.red,
                   unselectedColor: Colors.grey
                 ),
               ),
             ],
       ));
}

Implementation

final bool enableMultiSelection;