popAllDialogsAndBottomSheets method

void popAllDialogsAndBottomSheets()

Pops all dialogs bottom sheets

Implementation

void popAllDialogsAndBottomSheets() {
  while (isInBottomSheetDialogScope) {
    navigationStack.pop(currentTab, true);
  }

  // coverage:ignore-start
  bottomSheetDialogNavigatorKey.currentState?.popUntil(
    (route) => route.isFirst,
  );
  // coverage:ignore-end
}