popUntil abstract method

void popUntil(
  1. bool predicate(
    1. Route
    )
)

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);