openBox method

  1. @override
Future<Box> openBox(
  1. String boxName
)
override

Implementation

@override
Future<Box<dynamic>> openBox(String boxName) async {
  try {
    final secureKey = await _databaseSecurity.readEncryptionCipher();
    final box = await Hive.openBox<dynamic>(
      boxName,
      encryptionCipher: secureKey,
    );
    return box;
  } catch (e) {
    throw DatabaseBridgeException(error: e);
  }
}