selectionGesture property Null safety

ActivationMode selectionGesture
final

Gesture for activating the selection. Selection can be activated in tap, double tap, and long press.

Defaults to ActivationMode.tap.

Also refer ActivationMode

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

Implementation

final ActivationMode selectionGesture;