value property

  1. @override
T get value
override

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

Implementation

@override
T get value {
  PodTracker.reportRead(this);
  return _value;
}
set value (T newValue)

Implementation

set value(T newValue) {
  if (_value != newValue) {
    WhaleDevTools.logMutation(this, _value, newValue);
    _value = newValue;
    if (PodTracker.isBatching) {
      PodTracker.queueBatchedNotification(this);
    } else {
      notifyListeners();
    }
  }
}