value property

  1. @override
T get value
inherited

The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.

Implementation

@override
T get value {
  reportRead();
  return _value;
}
  1. @override
set value (T val)
override

Updates the value and adds it to the stream, updating the observer Widget, only if it's different from the previous value.

Implementation

@override
set value(T val) {
  if (isDisposed) return;
  sentToStream = false;
  if (value == val && !firstRebuild) return;
  firstRebuild = false;
  sentToStream = true;
  super.value = val;
}