GoogleSignInAccount class
Represents a signed-in Google account, providing account information as well as utilities for obtaining authentication and authorization tokens.
Although the API of the plugin is structured to allow for the possibility
of multiple signed in users, the underlying Google Sign In SDKs on each
platform do not all currently support multiple users in practice. For best
cross-platform results, clients should not call authenticate
to obtain a
new GoogleSignInAccount instance until after a call to signOut
.
- Implemented types
- Annotations
Properties
- authentication → GoogleSignInAuthentication
-
Returns authentication tokens for this account.
no setter
-
Returns a client that can be used to request authorization tokens for
this user.
no setter
- 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.
no setteroverride
- 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.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override