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