Writes a value to storage with the given key.
The value must be JSON-serializable.
@override Future<dynamic> write(String key, dynamic value) async { await _box.put(key, value); return value; }