popUntil 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
@override
void popUntil(bool Function(Route) predicate) =>
navigator.popUntil(predicate);