persistValue method

dynamic persistValue(
  1. String key,
  2. dynamic value
)

Implementation

dynamic persistValue(String key, dynamic value) {
  final configs = _readConfigs();
  if (!configs.containsKey(key)) {
    configs[key] = value;
    _writeConfigs(configs);
  }

  return configs[key];
}