value property
JsonValue
get
value
Implementation
JsonValue get value {
String? s = localStore.getString(key);
if (s == null) return JsonValue.nullValue;
return JsonValue.parse(s);
}
set
value
(dynamic newValue)
Implementation
set value(dynamic newValue) {
if (newValue == null) {
localStore.setValue(key, null);
} else if (newValue is String) {
localStore.setValue(key, newValue);
} else if (newValue is JsonValue) {
localStore.setValue(key, newValue.jsonText);
}
error("NOT support value: $newValue");
}