remote_config library

Remote Config: defaults in, values out.

Values are read as one map rather than through a getter per type. The SDK's typed getters coerce silently — asking for a long and getting a string back gives 0 — and a map keeps whatever type the value actually has.

Classes

RemoteConfigInfo
What the SDK knows about the last fetch, read from memory.
RemoteConfigSettings
The fetch timeout and the shortest interval between fetches.

Enums

RemoteConfigFetchStatus
How the last fetch ended.
RemoteConfigValueSource
Where a value came from.

Properties

hasRemoteConfig → bool
True when the library was built with Remote Config bound.
no setter

Functions

activateConfig() → Future<bool>
Activates what the last fetch brought back.
configInfo() → RemoteConfigInfo
What the SDK knows about the last fetch.
configSettings() → RemoteConfigSettings
The current fetch timeout and minimum interval.
configValues() → Future<Map<String, Object?>>
Every key and its current value: the activated one if a fetch supplied it, otherwise the default.
configValueSource(String key) → RemoteConfigValueSource
Where key's current value came from.
fetchAndActivateConfig() → Future<bool>
Fetches from the backend and activates what came back.
fetchConfig({Duration? cacheExpiration}) → Future<void>
Fetches from the backend without activating.
initRemoteConfig() → Future<void>
Binds Remote Config to the app already initialized by initDatabase.
setConfigDefaults(Map<String, Object?> defaults) → Future<void>
Sets the values a key reads as before any fetch has succeeded.
setConfigSettings(RemoteConfigSettings settings) → Future<void>
Sets the fetch timeout and the shortest interval between fetches.

Exceptions / Errors

RemoteConfigException
A Remote Config operation that failed.