quietSet method

dynamic quietSet(
  1. T newValue
)

Sets a new value and emits a change if the value is different than the old value but will not trigger any parent EmitterContainer to emit a change.

Implementation

quietSet(T newValue) {
  assert(!isDisposed);
  if (_isUnmodifiableView)
    throw ('Tried to modify an unmodifiable value emitter view');
  if (_value != newValue) {
    var oldValue = _value;
    _value = newValue;
    addChangeToStream(emitDetailedChanges
        ? ValueChange(oldValue, newValue, quiet: true)
        : ValueChange.any(quiet: true));
  }
}