@override Future<void> write(String key, String value) async { if (!isOpen) { await open(); } return box.put(key, value); }