popUntil abstract method
Calls pop repeatedly on the navigator that most tightly encloses the given context until the predicate returns true.
Modular.to.popUntil(ModalRoute.withName('/login'));
Implementation
void popUntil(bool Function(Route<dynamic>) predicate);