0
  final AuthResult authResult = await _auth.signInWithCredential(credential);
  final FirebaseUser user = authResult.user;

  assert(!user.isAnonymous);
  assert(await user.getIdToken() != null);

  final FirebaseUser currentUser = await _auth.currentUser();
  assert(user.uid == currentUser.uid);

enter image description here

Chris
  • 112,704
  • 77
  • 249
  • 231
  • plz check above image to help me out – Ah Zeem khatib Sep 03 '20 at 08:42
  • check the latest FlutterFire documentation.. they change "FirebaseUser" to "User", The FirebaseUser class has been renamed to User... https://firebase.flutter.dev/docs/migration – Raine Dale Holgado Sep 03 '20 at 08:46
  • What does "I'm not able to get FirebaseUser Method" mean? We need _exact_ error messages, please, ideally with full tracebacks. Please read [ask]. – Chris Sep 05 '20 at 10:33

0 Answers0