<https://stackoverflow.com/a/32254702/10026969> I am not getting this.
@override
void initState() async{
// TODO: implement initState
super.initState();
FirebaseUser user = await _auth.currentUser();
if(user!=null){
print('Already logged in with email '+ user.email);
// go to welcome screen
}
}
I am unable to keep use onAuthStateChange,How to keep the user logged in until he log out, if anyone has any idea how to implement this , please help.