clearToast static method

void clearToast()

Implementation

static void clearToast() {
  final OverlayEntry? entry = _toastEntry;

  _toastEntry = null;

  if (entry != null && entry.mounted) {
    entry.remove();
  }
}