getAllValues method

Map<String, dynamic> getAllValues()

Snapshot of all RC values, using the same typing rules as getValue with a null default.

Implementation

Map<String, dynamic> getAllValues() {
  final config = _remoteConfig;
  if (config == null) return const {};

  final all = config.getAll();
  final result = <String, dynamic>{};
  all.forEach((key, _) {
    result[key] = getValue(key, null);
  });
  return result;
}