value property
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
Implementation
@override
T get value {
PodTracker.reportRead(this);
return _value;
}
Implementation
@override
set value(T newValue) {
// Derived states should only be internally mutated
if (_dependencies.isEmpty) {
// Edge case during super constructor
super.value = newValue;
return;
}
throw UnsupportedError(
'Cannot manually set the value of a DerivedPod. It is computed automatically.');
}