remoteConfigService function
- dynamic ref
A provider for the RemoteConfigService class.
This provider is used to provide the RemoteConfigService class to the rest of the application. It is used to interact with Firebase Remote Config.
Usage:
ref.read(remoteConfigServiceProvider).getString('key');
Implementation
@riverpod
RemoteConfigService remoteConfigService(RemoteConfigServiceRef ref) {
final remoteConfigInstance = ref.read(remoteConfigInstanceProvider);
return RemoteConfigService(remoteConfigInstance);
}