LocalStorage class abstract

LocalStorage is used to persist the user session in the device.

See also:

Implementers

Constructors

LocalStorage({required Future<void> initialize(), required Future<bool> hasAccessToken(), required Future<String?> accessToken(), required Future<void> persistSession(String), required Future<void> removePersistedSession()})
const

Properties

accessToken Future<String?> Function()
Get the access token from the current persisted session.
final
hasAccessToken Future<bool> Function()
Check if there is a persisted session.
final
hashCode int
The hash code for this object.
no setterinherited
initialize Future<void> Function()
Initialize the storage to persist session.
final
persistSession Future<void> Function(String)
Persist a session in the device.
final
removePersistedSession Future<void> Function()
Remove the current persisted session.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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