popUntil method

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

Pop all screens until the predicate matches.

Implementation

void popUntil(bool Function(Route<dynamic>) predicate) {
  Navigator.of(this).popUntil(predicate);
}