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.


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