popUntil abstract method

void popUntil(
  1. BuildContext context,
  2. bool predicate(
    1. Route
    )
)

Pops routes until the given predicate returns true. Useful for returning to a specific route.

Implementation

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