JsonPersistence<T> class
JSON persistence adapter.
Requires a storage backend that can read/write strings.
- Inheritance
-
- Object
- SignalPersistence<
T> - JsonPersistence
Constructors
Properties
-
fromJson
→ T Function(Map<
String, dynamic> json) -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → String
-
final
-
read
→ Future<
String?> Function(String key) -
final
-
remove
→ Future<
void> Function(String key) -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toJson
→ Map<
String, dynamic> Function(T value) -
final
-
write
→ Future<
void> Function(String key, String value) -
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