Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Undefined class 'AuthResult' in Flutter

I have been trying to implement Google login screen using Flutter.

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

The editor, for the line above, says:

Undefined class 'AuthResult'

How can I fix it? Any help would be very appreciated.

like image 491
Berkay Avatar asked Dec 17 '19 15:12

Berkay


People also ask

What is AuthResult?

public interface AuthResult implements Parcelable. Result object obtained from operations that can affect the authentication state. Contains a method that returns the currently signed-in user after the operation has completed.

What is the replacement for FirebaseUser?

BREAKING: The FirebaseUser class has been renamed to User .


1 Answers

They renamed the class AuthResult to UserCredential

like image 137
Prabhashi Buddhima Avatar answered Sep 24 '22 07:09

Prabhashi Buddhima