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 (_renderBox != null && _tooltipBehavior.builder != null) {
_hideMouseTooltip();
} else if (_tooltipTemplate != null) {
//ignore: unused_local_variable
_timer?.cancel();
_timer = Timer(
Duration(milliseconds: _tooltipBehavior.duration.toInt()), () {});
}
}