An abstract interface class for managing persistent storage.
Provides methods for initializing storage, setting and getting values for biometric authentication and API URLs, managing tenant and user data, and handling logout operations.
Properties
- appUser ↔ AppUser?
-
Gets the current app user.
getter/setter pair
- baseApiUrl ↔ String
-
Gets the base API URL.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBiometricEnabled ↔ bool
-
Gets whether biometric authentication is enabled.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenant ↔ Tenant?
-
Gets the current tenant.
getter/setter pair
Methods
-
initializeBaseApiUrl(
) → dynamic - Initializes the base API URL.
-
logout(
) → dynamic - Logs out by clearing tenant and user data.
-
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
Static Methods
-
initialize(
{String boxName = "supa_architecture"}) → Future< PersistentStorageService> - Initializes the PersistentStorageService by setting up Hive storage.