getHiveBox static method

Future<Box> getHiveBox({
  1. Uint8List? encryptionKeyUint8List,
  2. String? key,
})

Implementation

static Future<Box<dynamic>> getHiveBox(
    {Uint8List? encryptionKeyUint8List, String? key}) async {
  return (hiveOpenBox = await Hive.openBox(_internalHiveBoxKey,
      encryptionCipher: HiveAesCipher(encryptionKeyUint8List ??
          await InitStorage()._getEncryptedKey(key))));
}