SecureStorageService class
A service that provides access to secure storage.
Constructors
Properties
- defaultInstance → FlutterSecureStorage
-
The default
FlutterSecureStorageinstance with encryption enabled.finalinherited -
deviceId
↔ SSObject<
String> -
Accessor for device ID in secure storage.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → FlutterSecureStorage
-
Returns the underlying
FlutterSecureStorageinstance.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
clearAll(
) → Future< void> - Clears all data from secure storage.
-
init(
) → Future< void> - Initializes the service by creating accessors for device ID and locale.
-
logout(
[List< String> ? keys]) → Future<void> -
Logs the user out by clearing all data from secure storage except the
keysprovided.keysare the keys to retain in secure storage. If not provided, the device ID is retained. -
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