getAllValues method

Future<Map<String, RemoteConfigValue>> getAllValues()

Get all RemoteConfig keys and values.

Implementation

Future<Map<String, RemoteConfigValue>> getAllValues() async {
  // Map<String, Map<String, Object>>
  var values = await Repro._invokeMapMethod<String, Map<dynamic, dynamic>>('remoteConfig_getAllValues');

  var map = <String, RemoteConfigValue>{};
  values!.forEach((key, value) {
    map[key] = RemoteConfigValue(value);
  });

  return map;
}