IGoogleSignInAccount class
Holds fields describing a signed in user's identity, following
GoogleSignInUserData
.
id is guaranteed to be non-null.
Constructors
-
IGoogleSignInAccount(IGoogleSignInUserData data, {IGoogleSignInAccount? currentUser, required Future<
IGoogleSignInTokenData> getTokens({required String email, bool? shouldRecoverAuth}), required Future<void> onClearAuthCache({required String token})})
Properties
-
authentication
→ Future<
IGoogleSignInAuthentication> -
Retrieve IGoogleSignInAuthentication for this account.
no setter
-
authHeaders
→ Future<
Map< String, String> > -
Convenience method returning a
<String, String>
map of HTML Authorization headers, containing the currentauthentication.accessToken
.no setter - currentUser ↔ IGoogleSignInAccount?
-
getter/setter pair
- displayName → String?
-
final
- email → String
-
final
-
getTokens
↔ Future<
IGoogleSignInTokenData> Function({required String email, bool? shouldRecoverAuth}) -
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
-
onClearAuthCache
↔ Future<
void> Function({required String token}) -
getter/setter pair
- photoUrl → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverAuthCode → String?
-
final
Methods
-
clearAuthCache(
) → Future< void> - Clears any client side cache that might be holding invalid tokens.
-
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.
inherited