hideToastEntry method

void hideToastEntry()

隐藏Toast Entry

Implementation

void hideToastEntry() {
  if (!_isToastShowing || _toastEntry == null) return;

  _isToastShowing = false;
  try {
    if (_toastEntry!.mounted) {
      _toastEntry!.remove();
    }
  } catch (e) {
    Log.console('Toast移除失败: $e');
  } finally {
    _toastEntry = null;
  }
}