Future<bool> getBool(String key, {bool defValue = false}) async{ EncryptedSharedPreferences pref = _pref!; bool value = pref.getBoolean(key) ?? defValue; return value; }