clearCache static method
Implementation
static Future<bool> clearCache() async {
try {
await _doInit();
Box<_SaveTranslationObject> dbHive = Hive.box(_boxName);
await dbHive.deleteAll(dbHive.keys);
return true;
} catch (e) {
return false;
}
}