popStack abstract method
void
popStack([
Removes the entire current navigation stack and navigates back to the last route of the previous stack. Throws an error if there's only one navigation stack.
Returns a Future that resolves as soon as the navigation completes.
Implementation
void popStack([NavigationContext? navigationContext]);