currentUser() is not working type why I am seeing the expression doesn't evaluate to a function, so it can't be invoked
问题 I'm new in Flutter, I'm working on a simple authentication app when I registered i should navigate to the chat screen and i want to grab current user but when i call FireBaseAuth.instance.currentUser() I got an exception "the expression doesn't evaluate to a function, so it can't be invoked." Why I'm seeing this? Please Help import 'package:firebase_auth/firebase_auth.dart'; import 'package:flutter/material.dart'; import 'package:flash_chat/constants.dart'; class ChatScreen extends