HiveLocalStorage constructor
HiveLocalStorage({
- required HiveInterface hive,
- FutureOr<
String> baseDirFn()?, - List<
int> ? encryptionKey, - LocalStorageClearStrategy? clear,
Implementation
HiveLocalStorage({
required this.hive,
this.baseDirFn,
List<int>? encryptionKey,
LocalStorageClearStrategy? clear,
}) : encryptionCipher =
encryptionKey != null ? HiveAesCipher(encryptionKey) : null,
clear = clear ?? LocalStorageClearStrategy.never;