I am able to signin with user in my authentication, but how to get current user aid in dart flutter.
I am trying in this way
FirebaseUser user = FirebaseAuth.instance.currentUser;
print(user.uid);
but showing error as
A value of type'()-> Future can't be assigned to a variable of type firebaseuser"