SerializableSettingsValue<T> class
SerializableSettingsValue allows you to store and retrieve values that can be serialized to and from JSON format.
See also:
- Inheritance
-
- Object
- SettingsValue<
T> - SerializableSettingsValue
Constructors
Properties
- defaultValue → T?
-
The value that is used by default.
finalinherited
-
fromJson
→ T Function(Map<
String, dynamic> json) -
Method that describes how to deserializes Json into an instance of
T
.final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The unique name of this setting.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
toJson
→ Map<
String, dynamic> Function(T value) -
Method that describes how to serializes the value into Json.
final
- value ↔ T?
-
Get the value stored for name.
getter/setter pairoverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reset(
) → void -
Resets the value of this SettingsValue to its default value.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
watch(
) → Stream< T?> -
Watches this SettingsValue for changes.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited