Skip to content

Instantly share code, notes, and snippets.

@bhavishassai
Last active August 14, 2022 12:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bhavishassai/7eff7b4a3c4d4505ec8246a5acb6446c to your computer and use it in GitHub Desktop.
Save bhavishassai/7eff7b4a3c4d4505ec8246a5acb6446c to your computer and use it in GitHub Desktop.
checkIfLoggedIn
Future<User?> checkIfLoggedIn() async {
try {
_user = await _account.get();
return _user;
} catch (e) {
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment