EncryptedPersistence<T> class
Encrypted persistence wrapper.
- Inheritance
-
- Object
- SignalPersistence<
T> - EncryptedPersistence
Constructors
-
EncryptedPersistence({required SignalPersistence<
String> storage, required String encrypt(String data), required String decrypt(String encrypted), required String serialize(T value), required T deserialize(String data)})
Properties
- decrypt → String Function(String encrypted)
-
final
- deserialize → T Function(String data)
-
final
- encrypt → String Function(String data)
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serialize → String Function(T value)
-
final
-
storage
→ SignalPersistence<
String> -
final
Methods
-
delete(
) → Future< void> -
override
-
load(
) → Future< T?> -
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
T value) → Future< void> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited