InMemoryTokenStorage<T> class Null safety

A TokenStorage implementation that keeps the token in memory.

Implemented types

Constructors

InMemoryTokenStorage()

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

delete() Future<void>
Deletes the stored token asynchronously.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
read() Future<T?>
Returns the stored token asynchronously.
override
toString() String
A string representation of this object.
inherited
write(T token) Future<void>
Saves the provided token asynchronously.
override

Operators

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