Computed<T> constructor
Computed<T> (
- T _getValue()
Creates a new Computed object that computes its value using getValue
.
The computation is deferred until the value getter is accessed.
Implementation
Computed(this._getValue) {
onChange = oneCallTask(() {
_updated = false;
_runDry();
});
dryRun = () => _value = _getValue();
}