value property

T get value

The value of this ComputedNotifier.

If the value has not yet been computed, then this getter will compute the value, set it, and notify all of the listeners.

Implementation

T get value {
  if (!_initialized) {
    _initialized = true;
    _value = this.compute();
    _listenable = Listenable.merge(depends)..addListener(_onChange);
  }

  return _value;
}