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.
late SelectionBehavior _selectionBehavior;
@override
void initState() {
_selectionBehavior = SelectionBehavior( enable: true);
super.initState();
}
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
selectionGesture: ActivationMode.doubleTap,
series: <BarSeries<SalesData, num>>[
BarSeries<SalesData, num>(
selectionBehavior: _selectionBehavior
),
],
)
);
}
Implementation
final ActivationMode selectionGesture;