The Navigator replaced oldRoute with newRoute.
oldRoute
newRoute
@override void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) { log(newRoute!, oldRoute, 'Replaced'); }