set method

  1. @override
Future<void> set(
  1. String key,
  2. Map<String, dynamic> value
)
override

Sets the value of a key within the store, overwriting the value if it exists.

Implementation

@override
Future<void> set(String key, Map<String, dynamic> value) async {
  _checkInitialized();

  final String keyWithPrefix = _addPrefix(key);
  _map[keyWithPrefix] = value;
  await _updatePref(keyWithPrefix, value);
}