DataStorage class

Helper class for persisting tokens between sessions

Properties

accessToken String?
Saves the token that your application sends to authorize a Google API request.
getter/setter pair
expiresAt DateTime?
Saves the remaining lifetime of the access token.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
id String?
The is of the user
no setter
idToken String?
Saves the JSON Web Token (JWT) that contains digitally signed identity information about the user.
getter/setter pair
refreshToken String?
Saves the token that you can use to obtain a new access token.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scopes List<String>
Save the scopes that we were granted access to in the last authorization.
getter/setter pair
tokenData ↔ GoogleSignInTokenData?
Retrieve the authentication data after sign in.
getter/setter pair
userData → GoogleSignInUserData?
Retrieve information about this signed in user based on the id_token.
no setter

Methods

clear() → void
Convenience method to clear all entries of this _clientId.
clearAll() → void
Convenience method to clear all user this objects persisted
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveResult(Map<String, dynamic> result) → void
Convenience method to update all fields persisted by this object
saveUserProfile(Map<String, dynamic> result) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited