value property

T get value
override

Returns the value of the signal.

Implementation

T get value {
  Reactter.signalProxy?.addSignal(this);
  return _value;
}
set value (T val)
override

Updates the value of the signal and notifies the observers when changes occur.

Implementation

set value(T val) {
  if (_value == val) return;

  update((_) => _value = val);
}