updateValue method

void updateValue(
  1. String key,
  2. dynamic value
)

Implementation

void updateValue(String key, dynamic value) {
  if (_appConfig[key] != null && value.runtimeType != _appConfig[key].runtimeType) {
    throwNUI(_MODULE, "The type of ${_appConfig[key].runtimeType} does not match the given type ${value.runtimeType}");
  }
  _appConfig.update(key, (dynamic) => value);
}