delete method
Deletes associated value for the given key
.
All associated data for the given key is removed
Implementation
Future<void> delete({
required String key,
}) async {
assert(key.isNotEmpty, 'key must not be empty');
await _synchronized(key, () async {
await performDelete(key: key);
await _getKeys();
_keys.remove(key);
await _updateKeys();
});
}