getAllValuesWithPrefix method

Future<Map<String, RemoteConfigValue>> getAllValuesWithPrefix(
  1. String prefix
)

Gets all RemoteConfig keys and values starting with the specified prefix.

Implementation

Future<Map<String, RemoteConfigValue>> getAllValuesWithPrefix(final String prefix) async {
  var values = await Repro._invokeMapMethod('remoteConfig_getAllValuesWithPrefix', prefix);
  var map = <String, RemoteConfigValue>{};
  values!.forEach((key, value) {
    map[key] = RemoteConfigValue(value);
  });
  return map;
}