readGeneral method
Implementation
Future<Object?> readGeneral({
required int key,
String? pw,
}) async {
await _ensureInit(pw: pw);
final HiveAesCipher? cipher = cipherFromKey(key: pw);
final Box<Object> box;
if (!Hive.isBoxOpen('general')) {
box = await Hive.openBox('general', encryptionCipher: cipher);
} else {
box = Hive.box('general');
}
return box.get(key);
}