SecureStorage<E> class abstract

Storage implementation that uses FlutterSecureStorage to store items.

Constructors

SecureStorage({required ToMap<E> toMap, required FromMap<E> fromMap, required String itemKey, FlutterSecureStorage secureStorage = const FlutterSecureStorage(), IOSOptions? iosOptions, AndroidOptions? androidOptions})
Makes a new instance using the provided fromMap and toMap item converters, itemKey as key in the secureStorage instance.
factory
SecureStorage.base(String itemKey, FlutterSecureStorage secureStorage, {AndroidOptions? androidOptions, IOSOptions? iosOptions})
SecureStorage.primitive({required String itemKey, FlutterSecureStorage secureStorage = const FlutterSecureStorage(), IOSOptions? iosOptions, AndroidOptions? androidOptions})
Storage implementation that uses FlutterSecureStorage to store primitive items that don't need a converter.
factory

Properties

androidOptions AndroidOptions?
final
hashCode int
The hash code for this object.
no setterinherited
iosOptions IOSOptions?
final
itemKey String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secureStorage FlutterSecureStorage
getter/setter pair

Methods

delete() Future<void>
Deletes any written item. If no item is found completes without error.
override
get() Future<E?>
Retrieves the saved item or returns null if no item is found.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save(E item) Future<E>
Saves the given item, overriding any previous entries.
inherited
toString() String
A string representation of this object.
inherited

Operators

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