close static method

void close()

Closes the currently displayed toast, if any.

This method removes the toast from the screen and sets _currentOverlayEntry to null.

Implementation

static void close() {
  _currentOverlayEntry?.remove();
  _currentOverlayEntry = null;
}