get method

Get the value of the RemoteConfig for the specified key. example:

var remoteConfigValue = await Repro.remoteConfig.get('myKey');
var stringValue = remoteConfigValue.asString();

Implementation

Future<RemoteConfigValue> get(final String key) async {
  // Expects to return:
  // { "String": "123", "int": 123, "toString": "123" }
  var resultValue = await Repro._invokeMapMethod<String, dynamic>('remoteConfig_get', key);
  return RemoteConfigValue(resultValue!);
}