value property

  1. @override
AsyncPhase<T> value
inherited

The current value stored in this notifier.

When the value is replaced with something that is not equal to the old value as evaluated by the equality operator ==, this class notifies its listeners.

Implementation

@override
T get value => _value;
  1. @override
  2. @protected
void value=(AsyncPhase<T> newValue)
override

Implementation

@override
@protected
set value(AsyncPhase<T> newValue) {
  super.value = newValue;

  if (newValue != _prevPhase) {
    _notifyListeners(prevPhase: _prevPhase, newPhase: newValue);
  }
  _prevPhase = newValue;
}