closeAll method
close all the opened box
Implementation
Future<void> closeAll() async {
return _lockGuard(() {
Future.wait([
_sessionBox.close(),
_cacheBox.close(),
Hive.close(),
]);
});
}
close all the opened box
Future<void> closeAll() async {
return _lockGuard(() {
Future.wait([
_sessionBox.close(),
_cacheBox.close(),
Hive.close(),
]);
});
}