void updateValue(value, { bool onlySelf, bool emitEvent, bool emitModelToViewChange })

Set the value of the control to value.

If onlySelf is true, this change will only affect the validation of this Control and not its parent component. If emitEvent is true, this change will cause a valueChanges event on the Control to be emitted. Both of these options default to false.

If emitModelToViewChange is true, the view will be notified about the new value via an onChange event. This is the default behavior if emitModelToViewChange is not specified.

Source

void updateValue(dynamic value,
    {bool onlySelf, bool emitEvent, bool emitModelToViewChange}) {
  emitModelToViewChange = emitModelToViewChange ?? true;
  this._value = value;
  if (_onChange != null && emitModelToViewChange) this._onChange(this._value);
  this.updateValueAndValidity(onlySelf: onlySelf, emitEvent: emitEvent);
}