value property

T value

The current value

Using this in a FastBuilder will cause a rebuild when the value changes

Implementation

T get value {
  // If this is called in a FastBuilder, this will add the stream to the FastBuilder's observer
  register();
  return _value;
}
void value=(T value)

Set the current value

Will notify listeners if the value has changed

Implementation

set value(T value) {
  if (_value != value) {
    _value = value;
    notify();
  }
}