popUntil method

void popUntil([
  1. bool predicate(
    1. Route
    )?
])

remove all pages in the stack until predicate

Implementation

void popUntil([bool Function(Route<dynamic>)? predicate]) {
  _validateRouterState();
  _navigator.popUntil(predicate ?? (_) => false);
}