DefaultStorage class
- Implemented types
Constructors
- DefaultStorage({FlutterSecureStorage? storage})
- Constructor to initialize the DefaultStorage instance.
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
deleteToken(
) → Future< void> -
Deletes the locally stored access token.
override
-
deleteUserName(
) → Future< void> -
Deletes the locally stored user name.
override
-
getUserName(
) → Future< String?> -
Reads the stored user name 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
-
setUserName(
String? name) → Future< void> -
Sets the user name 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
-
read / write
- userNameKey ↔ String
-
read / write