value property
void
value=(T newVal)
Sets the value and triggers an update on the stream.
Implementation
set value(T newVal) {
if (newVal == _value) {
return;
}
if (compare != null && compare!(newVal, _value)) {
return;
}
final change = _change(newVal);
_syncAndApplyChange(change);
}