TF-2310 Use singleton for HiveCacheConfig to avoid creating multiple instance
This commit is contained in:
@@ -13,7 +13,7 @@ abstract class HiveCacheClient<T> {
|
||||
|
||||
bool get encryption => false;
|
||||
|
||||
Future<Uint8List?> _getEncryptionKey() => HiveCacheConfig.getEncryptionKey();
|
||||
Future<Uint8List?> _getEncryptionKey() => HiveCacheConfig.instance.getEncryptionKey();
|
||||
|
||||
Future<Box<T>> openBox() async {
|
||||
if (Hive.isBoxOpen(tableName)) {
|
||||
|
||||
Reference in New Issue
Block a user