value property
void
value=(T val)
Updates the value and adds it to the stream, updating the observer Widget, only if it's different from the previous value.
Implementation
set value(T val) {
if (_value != val) {
_value = val;
final hashCode = _rxDependencies[this];
if (hashCode != null) {
final state = _stateHashCodes[hashCode];
if (state == null) {
_rxDependencies.remove(_hashCode);
} else {
if (state.mounted) {
//ignore: invalid_use_of_protected_member
state.setState(() {});
} else {
_rxDependencies.remove(_hashCode);
_stateHashCodes.remove(hashCode);
}
}
}
}
}