defaultConfig property
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));