onExit method

  1. @override
void onExit(
  1. double xPos,
  2. double yPos
)
override

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()), () {});
  }
}