write static method
Writes a value and notifies listeners.
Implementation
static Future<void> write(String key, Object? value) async {
final Box<dynamic>? box = await ensureInitialized();
if (box == null) return;
await box.put(key, value);
revision.value++;
}