popInTabUntil method

void popInTabUntil(
  1. Object routeName
)

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

Implementation

void popInTabUntil(Object routeName) {
  while (canPop(global: false) && latestTabRoute().name != routeName) {
    pop();
  }
}