restoreRouteInformation method

  1. @override
RouteInformation? restoreRouteInformation(
  1. AppRoutePath configuration
)
override

Restore to the current configuration It is the responsibility of the delegate to restore its internal state based on the provided configuration.

Implementation

@override
RouteInformation? restoreRouteInformation(AppRoutePath configuration) {
  //
  if (AppRouterDelegate._currentConfiguration.path != configuration.path) {
    //
    configuration = AppRouterDelegate._currentConfiguration;
  }
  return RouteInformation(location: configuration.path, state: configuration);
}