popAppRoute method
override
Pop the current top-most app route.
Typically, if the current route is a ChildAppRoute, the router should navigate to the route's parent.
If the navigator is a RootAppRoute, it may be popped accordingly based on the app's desired behavior.
Should return true if the route did pop, and false otherwise.
Implementation
@override
bool popAppRoute() {
final newConfiguration = currentConfiguration.toPopped();
if (newConfiguration != null) {
currentConfiguration = newConfiguration;
return true;
}
return false;
}