I\'m making a flutter app for my college project, where I\'m adding a login and signup page and authenticating it via Firebase, and when I click login the debug console says
signInWithEmailAndPassword returns AuthResult and AuthResult class contains instance variable user of type FirebaseUser. So You have to change your code as following way.
FirebaseUser userDetails = (await FirebaseAuth.instance
.signInWithEmailAndPassword(Credentialsxxx)).user;
print('sign in : ${userDetails.uid}');