openLazyBox<E> abstract method

Future<LazyBox<E>> openLazyBox<E>(
  1. String name, {
  2. HiveCipher? encryptionCipher,
  3. KeyComparator keyComparator = defaultKeyComparator,
  4. CompactionStrategy compactionStrategy = defaultCompactionStrategy,
  5. bool crashRecovery = true,
  6. String? path,
  7. @Deprecated('Use encryptionCipher instead') List<int>? encryptionKey,
})

Opens a lazy box.

If the box is already open, the instance is returned and all provided parameters are being ignored.

Implementation

Future<LazyBox<E>> openLazyBox<E>(
  String name, {
  HiveCipher? encryptionCipher,
  KeyComparator keyComparator = defaultKeyComparator,
  CompactionStrategy compactionStrategy = defaultCompactionStrategy,
  bool crashRecovery = true,
  String? path,
  @Deprecated('Use encryptionCipher instead') List<int>? encryptionKey,
});