hide method

void hide()

method to hide the dialog this will remove the overlay entry

Implementation

void hide() {
  _overlayEntry?.remove();
  _overlayEntry = null;
}