selectionGesture property
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>(
selectionSettings: SelectionSettings(
selectedColor: Colors.red,
unselectedColor: Colors.grey
),
),
],
));
}
Implementation
final ActivationMode selectionGesture;