SSObject<T> class

A class that extends SecureStorageHelper and provides functionality for storing and retrieving objects of a generic type T in secure storage.

This class supports basic type conversions for String, int, double, num, bool, List, and Map. If you need to store custom types, you might need to override the stringToValue and valueToString methods.

Inheritance

Constructors

SSObject(String _key, FlutterSecureStorage instance)
Creates an instance of SSObject with a specified key and the instance from the superclass.

Properties

hashCode int
The hash code for this object.
no setterinherited
key String
The key used to store the value in secure storage.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

listen(ValueChanged<T?> listener) StreamSubscription<T?>
Returns a Stream that emits the current value of the stored data. Make sure to call StreamSubscription.cancel when you are done with the stream.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
read() Future<T?>
Reads the value from secure storage.
inherited
remove() Future<void>
Removes the value from secure storage.
inherited
set(T? value) Future<T?>
Sets the value in secure storage.
inherited
stringToValue(String value) → T
Converts a String value from secure storage to the generic type T.
toString() String
A string representation of this object.
inherited
valueToString(T value) String
Converts a value of type T to a String for storing in secure storage.

Operators

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