popScopesTill method

Future<bool> popScopesTill(
  1. String name
)

if you have a lot of scopes with names you can pop (see popScope) all scopes above the scope with name including that scope Scopes are poped in order from the top As dispose funcions can be async, you should await this function. it no scope with name exists, nothing is popped and false is returned

Implementation

Future<bool> popScopesTill(String name) => locator.popScopesTill(name);