DefaultStorage class

Implemented types

Constructors

DefaultStorage({FlutterSecureStorage? storage})
Constructor to initialize the DefaultStorage instance.

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

deleteToken() Future<void>
Deletes the locally stored access token.
override
deleteUserName() Future<void>
Deletes the locally stored user name.
override
getUserInfo() Future<String?>
Reads the stored user info from secure storage.
override
isTokenSavedLocally() Future<bool>
Checks if the access token is saved locally.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
readTokenResponse() Future<String?>
Reads the access token response from secure storage.
override
setTokenResponse(String value) Future<void>
Sets the access token response in secure storage.
override
setUserInfo(String? name) Future<void>
Sets the user info in secure storage.
override
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

tokenResponseKey String
getter/setter pair
userNameKey String
getter/setter pair