FirebaseAuth.instance.currentUser().then and catch code example
Example: firebase.auth.currentuser
var user = firebase.auth().currentUser;if (user) { // User is signed in.} else { // No user is signed in.}
var user = firebase.auth().currentUser;if (user) { // User is signed in.} else { // No user is signed in.}