remove static method

Future<void> remove(
  1. String key, {
  2. UStorageBucket bucket = UStorageBucket.support,
})

Implementation

static Future<void> remove(String key, {UStorageBucket bucket = UStorageBucket.support}) async {
  await _ensure();
  final _BucketIndex index = _writable(bucket);
  if (index.entries.remove(key) == null) return;
  await _backend.delete(_pathFor(bucket, key));
  _scheduleSave(index);
  _events.add(UStorageEvent(UStorageEventType.removed, bucket, key));
}