SecureStorageService class

A service that provides access to secure storage.

Constructors

SecureStorageService()

Properties

defaultInstance → FlutterSecureStorage
The default FlutterSecureStorage instance 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 FlutterSecureStorage instance.
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 keys provided. keys are 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

Constants

TAG → const String
Logging tag for this service.