From c19cbaac8888353dfa3efc5cd9b895c52962d399 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 18 Feb 2021 18:27:24 +0100 Subject: [PATCH] Fix invalid call --- lib/helpers/preferences_helper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/helpers/preferences_helper.dart b/lib/helpers/preferences_helper.dart index 1ab638c..5398248 100644 --- a/lib/helpers/preferences_helper.dart +++ b/lib/helpers/preferences_helper.dart @@ -46,7 +46,7 @@ class PreferencesHelper { if (token != null) await setString(PreferencesKeyList.LOGIN_TOKEN, token); else - await _sharedPreferences.remove(token); + await removeKey(PreferencesKeyList.LOGIN_TOKEN); } /// Get current [LoginTokens]. Returns null if none or in case of failure