didChangePrevious method
- @override
This route's previous route has changed to the given new route. This is
called on a route whenever the previous route changes for any reason, so
long as it is in the history, except for immediately after the route has
been pushed (in which case didPush or didReplace will be called
instead). previousRoute
will be null if there's no previous route.
Implementation
@override
void didChangePrevious(Route<dynamic> previousRoute) {
super.didChangePrevious(previousRoute);
changedInternalState();
}