GoogleSignInAccount class Null safety

Holds fields describing a signed in user's identity, following GoogleSignInUserData.

id is guaranteed to be non-null.

Implemented types

Properties

authentication Future<GoogleSignInAuthentication>
Retrieve GoogleSignInAuthentication for this account. [...]
read-only
authHeaders Future<Map<String, String>>
Convenience method returning a <String, String> map of HTML Authorization headers, containing the current authentication.accessToken. [...]
read-only
displayName String?
The display name of the signed in user. [...]
final
email String
The email address of the signed in user. [...]
final
hashCode int
The hash code for this object. [...]
read-only, override
id String
The unique ID for the Google account. [...]
final
photoUrl String?
The photo url of the signed in user if the user has a profile picture. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

clearAuthCache() Future<void>
Clears any client side cache that might be holding invalid tokens. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override

Constants

kFailedToRecoverAuthError → const String
Error code indicating there was a failed attempt to recover user authentication.
'failed_to_recover_auth'
kUserRecoverableAuthError → const String
Error indicating that authentication can be recovered with user action;
'user_recoverable_auth'