EmptyLocalStorage class

A LocalStorage implementation that does nothing. Use this to disable persistence.

Inheritance

Constructors

EmptyLocalStorage()
Creates a LocalStorage instance that disables persistence
const

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

accessToken() → Future<String?>
Get the access token from the current persisted session.
override
hasAccessToken() → Future<bool>
Check if there is a persisted session.
override
initialize() → Future<void>
Initialize the storage to persist session.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
persistSession(String persistSessionString) → Future<void>
Persist a session in the device.
override
removePersistedSession() → Future<void>
Remove the current persisted session.
override
toString() → String
A string representation of this object.
inherited

Operators

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