onConfigReload method
Called when the application configuration is reloaded.
Providers overriding this hook can re-apply configuration without manually subscribing to ConfigReloadedEvent.
Implementation
@override
Future<void> onConfigReload(Container container, Config config) async {
final resolved = _resolveSessionConfig(container, config);
if (resolved == null) {
if (_managesConfig) {
container.remove<SessionConfig>();
_managesConfig = false;
}
return;
}
container.instance<SessionConfig>(resolved);
_managesConfig = true;
}