popToFirst method
void
popToFirst()
Pops the top-most route off the navigator till the first route.
Implementation
void popToFirst() {
Navigator.of(this).popUntil((predicate) {
return predicate.isFirst;
});
}
Pops the top-most route off the navigator till the first route.
void popToFirst() {
Navigator.of(this).popUntil((predicate) {
return predicate.isFirst;
});
}