value property

int value
inherited

Returns the current value

Implementation

T get value {
  if (getObs != null) {
    getObs.addListener(subject.stream);
  }
  return _value;
}
void value=(int val)
inherited

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

Implementation

set value(T val) {
  if (_value == val && !firstRebuild) return;
  firstRebuild = false;
  _value = val;
  subject.add(_value);
}