setValue method
Write a value from persistent storage, throwing an exception if it's not the correct type
Implementation
@Deprecated("Use updateValue instead")
void setValue(key, value) => value.runtimeType != appConfig[key].runtimeType
? throw ("wrong type")
: appConfig.update(key, (dynamic) => value);