hideToastEntry method

void hideToastEntry()

隐藏Toast Entry

Implementation

void hideToastEntry() {
  if (!_isToastShowing) return;

  _isToastShowing = false;
  try {
    _toastEntry?.remove();
  } catch (e) {
    // 忽略移除失败的错误
  }
  _toastEntry = null;
}