This line is causing me trouble
User fUser = FirebaseAuth.instance.currentUser;
FirebaseAuth.instance.currentUser is supposed to return User but dart gives me an error saying that it is returning Future<FirebaseUser> Function() instead. I got this line of code straight from the documentation (https://firebase.flutter.dev/docs/auth/usage). I have already run flutter pub upgrade so I am using the latest version of FirebaseAuth.
Please advise.