closeAllDialogsAndBottomSheets method
Closes all dialogs and bottom sheets that are currently open.
id is for when using nested navigation.
Implementation
void closeAllDialogsAndBottomSheets(String? id) {
  // Close both dialogs and bottom sheets concurrently
  while ((isDialogOpen! || isBottomSheetOpen!)) {
    closeOverlay(id: id);
  }
}