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