resetTooltip method

void resetTooltip()

重置提示框

Implementation

void resetTooltip() {
  bool needNotify = false;
  if (tooltipWidgetBuilder != null) {
    _tooltipWidgetBuilder = null;
    needNotify = true;
  }
  if (_outLocation != null) {
    _outLocation = null;
    needNotify = true;
  }
  if (_state?.layout.localPosition != null) {
    _state?.localPosition = null;
    needNotify = true;
  }
  if (needNotify) {
    _notifyTooltip();
  }
}