didReplace method
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route<dynamic>? newRoute, Route<dynamic>? oldRoute}) {
final copy = _leavePageCallbacks.toList(growable: false);
for (BotToastNavigatorObserverProxy observerProxy in copy) {
observerProxy.didReplace?.call(newRoute, oldRoute);
}
}