didReplace method
override
The Navigator replaced oldRoute
with newRoute
.
Implementation
@override
void didReplace({Route? newRoute, Route? oldRoute}) {
if (newRoute != null &&
_isObscuring(newRoute) &&
(oldRoute == null || !_isObscuring(oldRoute))) {
router.obscuring.remove(newRoute);
}
}