popToFirst method
void
popToFirst()
Pops until the first route on the stack.
Implementation
void popToFirst() => Navigator.popUntil(this, (route) => route.isFirst);
Pops until the first route on the stack.
void popToFirst() => Navigator.popUntil(this, (route) => route.isFirst);