delete static method

Future<void> delete(
  1. String key
)

Deletes a value and notifies listeners.

Implementation

static Future<void> delete(String key) async {
  final Box<dynamic>? box = await ensureInitialized();
  if (box == null) return;
  await box.delete(key);
  revision.value++;
}