Storage class Null safety

App storage singleton class

Constructors

Storage()
factory

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
secureStorage FlutterSecureStorage
read / write

Methods

deleteToken() Future<void>
delete from keystore/keychain
deleteUserId() Future<void>
delete from keystore/keychain
getThemeMode() Future<AppThemeMode>
getToken() Future<String?>
read to keystore/keychain
getUserId() Future<String?>
read to keystore/keychain
isFirstLaunch() Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notificationsEnabled() Future<bool>
saveNotificationsMode(bool enabled) → dynamic
saveThemeMode(AppThemeMode mode) Future<void>
saveToken(String token) Future<void>
write to keystore/keychain
saveUserId(String userId) Future<void>
write to keystore/keychain
setAsLaunched() → dynamic
toString() String
A string representation of this object. [...]
inherited

Operators

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