popAllDialogsAndBottomSheets method

void popAllDialogsAndBottomSheets()

Pops all dialogs bottom sheets

Implementation

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

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