AccessTokenPersistable mixin

Extends Persistable functionality to save accessToken.

Superclass Constraints
Mixin Applications

Properties

accessToken String
Token used for OAuth authentication.
getter/setter pairinherited-getteroverride-setter
authorizationHeaderValue String
A value to be used as 'Authorization' header value.
no setterinherited
client → Client
Underlying client used for making requests.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tokenStorage → TokenStorage
Instance of TokenStorage used for storing and retrieving token.
no setterinherited
tokenToPersist String
Getter for a token that should be persisted.
no setterinherited

Methods

close() → void
Closes the underlying client.
inherited
deleteSavedToken() FutureOr<void>
Deletes the saved token from storage.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persist() FutureOr<void>
Saves tokenToPersist to tokenStorage.
inherited
send<T>(Request<T> request) Future<Response>
Adds authorization header to the request headers.
inherited
serializeBody<T>(T? body) Object?
Serializes body if it conforms to Serializable.
inherited
toString() String
A string representation of this object.
inherited

Operators

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