getRemoteConfigString method
- String key
Retrieves a summary of a Remote Config string value.
Returns a record containing the string value and whether it came from a remote source.
Implementation
({String value, bool isRemote}) getRemoteConfigString(String key) {
final rc = remoteConfig;
if (rc == null) {
return (value: '', isRemote: false);
}
final val = rc.getValue(key);
return (
value: val.asString(),
isRemote: val.source == ValueSource.valueRemote,
);
}