closeAllDialogsAndBottomSheets method

void closeAllDialogsAndBottomSheets(
  1. String? id
)

Implementation

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