didReplace method
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
super.didReplace(newRoute: newRoute, oldRoute: oldRoute);
String? enterName = _getRouteName(newRoute);
String? exitName = _getRouteName(oldRoute);
_reportView(enterName, exitName, "didReplace");
}