The Navigator replaced oldRoute with newRoute.
oldRoute
newRoute
@override void didReplace({Route? newRoute, Route? oldRoute}) { _currentRoute.value = newRoute; }