value property Null safety

T value

The current value of this observable.

Implementation

T get value => _value;
void value=(T val)

Implementation

set value(T val) {
  if (!canceled && (!checkEquality || _value != val)) {
    _value = val;
    // Delaying notify() allows the Future and Stream to update correctly.
    Future.delayed(Duration.zero, () => notify(val));
  }
}