didReplace method
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
var src = "Did replace ${newRoute?.settings} (old ${oldRoute?.settings})";
handlePoppedRoute(_toRouteInfo(oldRoute, src));
handlePushedRoute(_toRouteInfo(newRoute, src));
}