Created
September 19, 2019 13:29
-
-
Save vferreirati/532067b75be0a2d29b3d6c51d8bcb732 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<Event<bool>> login(LoginModel loginModel) async { | |
try { | |
final loginResponse = await _authService.login(); | |
return SuccessEvent(data: true); | |
} catch(e) { | |
if(e is SocketException) { | |
// Usuário sem internet | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment