popUntil abstract method

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

Removes all routes in the navigation stack until the condition specified in predicate is satisfied

Implementation

void popUntil(bool Function(Route<dynamic>) predicate);