popUntil method
Pops until a route with the given name is found.
Example:
context.popUntil('/home');
Implementation
void popUntil(String routeName) {
Navigator.of(this).popUntil((route) => route.settings.name == routeName);
}
Pops until a route with the given name is found.
Example:
context.popUntil('/home');
void popUntil(String routeName) {
Navigator.of(this).popUntil((route) => route.settings.name == routeName);
}