hide method
void
hide()
Hides the tooltip if it is displayed.
Implementation
void hide() {
if (_stateProperties != null) {
final TooltipBehaviorRenderer tooltipBehaviorRenderer =
_stateProperties.renderingDetails.tooltipBehaviorRenderer;
// ignore: unnecessary_null_comparison
if (tooltipBehaviorRenderer != null) {
tooltipBehaviorRenderer._tooltipRenderingDetails.showLocation = null;
tooltipBehaviorRenderer._tooltipRenderingDetails.show = false;
}
if (builder != null) {
// Hides tooltip template.
tooltipBehaviorRenderer._tooltipRenderingDetails.chartTooltipState
?.hide(hideDelay: 0);
} else {
// Hides default tooltip.
tooltipBehaviorRenderer._tooltipRenderingDetails.currentTooltipValue =
tooltipBehaviorRenderer._tooltipRenderingDetails.prevTooltipValue =
null;
tooltipBehaviorRenderer._tooltipRenderingDetails.chartTooltipState
?.hide(hideDelay: 0);
}
}
}