TF-474 Fix data in cache not show correctly after logout
This commit is contained in:
@@ -118,4 +118,14 @@ class StateCacheClient extends HiveCacheClient<StateCache> {
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> clearAllData() {
|
||||
return Future.sync(() async {
|
||||
final boxState = await openBox();
|
||||
boxState.clear();
|
||||
}).catchError((error) {
|
||||
throw error;
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user