activationMode property
Gesture for activating the crosshair.
Crosshair can be activated in tap, double tap and long press.
Defaults to ActivationMode.longPress
Also refer ActivationMode
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
crosshairBehavior: CrosshairBehavior(
enable: true, activationMode: ActivationMode.doubleTap),
));
}
Implementation
final ActivationMode activationMode;