popUntil method

void popUntil(
  1. Object routeName, {
  2. bool forceGlobal = false,
})

Pops every route dialog and bottom sheet until current route name is routeName

Implementation

void popUntil(Object routeName, {bool forceGlobal = false}) {
  if (forceGlobal || isInGlobalStack()) {
    popGlobalUntil(routeName);
  } else {
    popInTabUntil(routeName);
  }
}