didReplace method
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
DSMetrica._screenNames.remove(oldRoute?.settings.name);
DSMetrica.reportScreenOpened(newRoute?.settings.name);
super.didReplace(newRoute: newRoute, oldRoute: oldRoute);
}