Pop all screens until the predicate matches.
void popUntil(bool Function(Route<dynamic>) predicate) { Navigator.of(this).popUntil(predicate); }