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
-
- Object
- SecureStorageHelper<
T> - SSObject
Constructors
Properties
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
Tto a String for storing in secure storage.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited