The Navigator replaced oldRoute with newRoute.
oldRoute
newRoute
@override void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) { if (newRoute == null) { return; } _logRoute(newRoute); }