Called when a route has been replaced by another route.
void didReplace({Route? newRoute, Route? oldRoute});