closeAllOverlays method
void
closeAllOverlays()
Closes all open overlays (dialogs, bottom sheets, and snackbars).
Implementation
void closeAllOverlays() {
closeAllDialogsAndBottomSheets(null);
closeAllSnackbars();
}