restoreRouteInformation method
Returns RouteInformation that has the top PagePath's location and all pages' states.
Implementation
RouteInformation? restoreRouteInformation() {
final uri = getTopPagePath()?.uri;
if (uri == null) {
return null;
}
return RouteInformation(state: toJson(), uri: uri);
}