TokenStorage class abstract interface

Persistence contract for tokens.

Implementations should be safe to call from any isolate. They should NOT throw — failures should be swallowed or logged. TokenKeeper calls these methods on its hot path and treats them as best-effort.

Implementers

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

delete() Future<void>
Removes any stored token. A no-op if storage is empty.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Future<Token?>
Returns the stored token or null if none was written.
toString() String
A string representation of this object.
inherited
write(Token token) Future<void>
Persists token, replacing any previous entry.

Operators

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