shouldAlwaysShow property
Shows or hides the tooltip.
By default, the tooltip will be hidden on touch. To avoid this, set this property to true.
Defaults to false
.
late TooltipBehavior tooltipBehavior;
void initState() {
tooltipBehavior = TooltipBehavior(
enable: true,
shouldAlwaysShow: true
);
super.initState();
}
Widget build(BuildContext context) {
return SfCartesianChart(
tooltipBehavior: tooltipBehavior
);
}
Implementation
final bool shouldAlwaysShow;