didReplace method

  1. @override
void didReplace(
  1. Route? oldRoute
)
override

Called after install when the route replaced another in the navigator.

The didChangeNext and didChangePrevious methods are typically called immediately after this method is called.

Implementation

@override
void didReplace(Route<dynamic>? oldRoute) {
  if (oldRoute is DelegatedTransitionsRoute && oldRoute._nextRoutes != null) {
    _nextRoutes =
        List<DelegatedTransitionsRoute<dynamic>>.from(oldRoute._nextRoutes!);
  }
  super.didReplace(oldRoute);
}