onExit method
Performs the mouse exit action of chart.
Hits while exit tap on the chart.
- xPos - X value of the touch position.
- yPos - Y value of the touch position.
Implementation
@override
void onExit(double xPos, double yPos) {
if (_tooltipRenderingDetails.renderBox != null &&
_tooltipRenderingDetails.tooltipBehavior.builder != null) {
_hideMouseTooltip();
} else if (_tooltipRenderingDetails.tooltipTemplate != null) {
//ignore: unused_local_variable
_tooltipRenderingDetails.timer?.cancel();
_tooltipRenderingDetails.timer = Timer(
Duration(
milliseconds:
_tooltipRenderingDetails.tooltipBehavior.duration.toInt()),
() {});
}
}