didReplace method
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
if(newRoute != null && !_isDialogRoute(newRoute)) {
screenStack.remove(newRoute.settings.name);
updateScreenStack();
}
super.didReplace(newRoute: newRoute, oldRoute: oldRoute);
}