activationMode property
Gesture for activating the trackball.
Trackball can be activated in tap, double tap and long press.
Defaults to ActivationMode.longPress
.
Also refer ActivationMode.
late TrackballBehavior trackballBehavior;
void initState() {
trackballBehavior = TrackballBehavior(
enable: true,
activationMode: ActivationMode.doubleTap
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
trackballBehavior: trackballBehavior
);
}
Implementation
final ActivationMode activationMode;