Close hive boxes in Background (notificaiton)

This commit is contained in:
Dat PHAM HOANG
2024-07-16 16:15:31 +07:00
committed by Dat H. Pham
parent 7b5c0d5a75
commit adaab2198d
6 changed files with 47 additions and 16 deletions
@@ -24,4 +24,6 @@ class StateCacheManager {
final stateKey = TupleKey(stateCache.type.name, accountId.asString, userName.value).encodeKey;
return await _stateCacheClient.insertItem(stateKey, stateCache);
}
Future<void> closeStateHiveCacheBox() => _stateCacheClient.closeBox();
}