closeAllDialogsAndBottomSheets method
Implementation
void closeAllDialogsAndBottomSheets(String? id) {
// It can not be divided, because dialogs and bottomsheets can not be consecutive
while (((isDialogOpen ?? false) && (isBottomSheetOpen ?? false))) {
closeOverlay(id: id);
}
}