From 5e983bd77d0b9f3357f4ec417c433524722b9f5e Mon Sep 17 00:00:00 2001 From: Elham Rababah Date: Mon, 24 Aug 2020 11:17:09 +0300 Subject: [PATCH] remove clear Shared pref code --- lib/core/viewModels/authentication_view_model.dart | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/core/viewModels/authentication_view_model.dart b/lib/core/viewModels/authentication_view_model.dart index b91b228..b64f49c 100644 --- a/lib/core/viewModels/authentication_view_model.dart +++ b/lib/core/viewModels/authentication_view_model.dart @@ -24,10 +24,6 @@ class AuthenticationViewModel extends BaseViewModel { } } - AuthenticationViewModel(){ - sharedPref.clear(); - } - login(LoginRequest loginRequest) async { setState(ViewState.BusyLocal); await _authenticationService.login(loginRequest);