value property
Implementation
@override
dynamic get value {
if (_value == null) return defaultValue;
if ((!dirty) &&
(S.isNullOrEmpty(_value?.get())) &&
(!S.isNullOrEmpty(defaultValue))) _value!.set(defaultValue);
return _value?.get();
}
Implementation
@override
set value(dynamic v) {
if (_value != null) {
_value!.set(v);
if (v != null) v = v.toString();
dynamic data;
for (var option in options) {
if (option.value == v) data = option.data;
}
this.data = data;
} else {
if ((v != null) ||
(WidgetModel.isBound(this, Binding.toKey(id, 'value')))) {
_value = StringObservable(Binding.toKey(id, 'value'), v,
scope: scope, listener: onPropertyChange);
}
}
}