defaultConfig property

Map<String, dynamic> defaultConfig

Contains default values for configs. To set default config, compose a map and then assign it to defaultConfig. Any modifications to the map after the assignment will not take effect.

Example:


final remoteConfig = firebase.remoteConfig();
Map<String, dynamic> defaultsMap = {'title': 'Hello', counter: 1};
remoteConfig.defaultConfig = defaultsMap;   // Correct.
defaultsMap['x'] = 1;                       // remoteConfig.defaultConfig will not be updated.
remoteConfig.defaultConfig['x'] = 1;        // Runtime error: attempt to modify an unmodifiable map.

Implementation

Map<String, dynamic> get defaultConfig =>
    Map.unmodifiable(dartifyMap(jsObject.defaultConfig));
void defaultConfig=(Map<String, dynamic> value)

Implementation

set defaultConfig(Map<String, dynamic> value) {
  jsObject.defaultConfig = jsify(value);
}