setValue method

  1. @Deprecated("Use updateValue instead")
void setValue(
  1. dynamic key,
  2. dynamic value
)

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