value property

T get value

Getter of the current value of this observable.

Implementation

T get value => _value;
set value (T value)

Method used to set the new value of an observable. This will call all listeners who listen to this.

Implementation

set value(T value) {
  _value = value;
  for (var listener in _listener) {
    listener.call(value);
  }
  _alert
    ..forEach((alerter) => alerter.call(value))
    ..clear();
}