Future<bool> clear() async { if (_config.type == StorageType.sharedPreferences) { return await _prefs!.clear(); } else { await _hiveBox!.clear(); return true; } }