setRestoredRoutePath method
Called by the Router during state restoration.
When the Router is configured for state restoration, it will persist the value of currentConfiguration during state serialization. During state restoration, the Router calls this method (instead of setInitialRoutePath) to pass the previous configuration back to the delegate. It is the responsibility of the delegate to restore its internal state based on the provided configuration.
By default, this method forwards the configuration
to setNewRoutePath.
Implementation
@override
Future<void> setRestoredRoutePath(RouterConfiguration configuration) {
_routerState._restore(configuration);
return Future.value();
}