I’m trying to make a chat between two people using Flutter and Firebase but I’m facing an error when I connect into my app using Firebase’s signInWithEmailAndPassword, it tells me:
the getter email was called on null.
to remove this error first let me show you where is my problem happen
if you look closer at my code on onPressed button you will see the path firestore, my path is fine but the one who caused the error is loggedInUser.email, because he will take the users' email address in anonymously and it will become null if signing anonymously. so try (remove .email ) in loggedInUser.email and just write ( loggedInUser,) only
Flutter Developer