patchValue method
Patches the value
of a control.
This function is functionally the same as FormControl.updateValue at this level. It exists for symmetry with FormGroup.patchValue on FormGroup and FormArray.patchValue in FormArray where it does behave differently.
When updateParent
is true or not supplied (the default) each change
affects this control and its parent, otherwise only affects to this
control.
When emitEvent
is true or not supplied (the default), both the
statusChanges and valueChanges emit events with the latest status
and value when the control is reset. When false, no events are emitted.
Implementation
@override
void patchValue(T? value, {bool updateParent = true, bool emitEvent = true}) {
updateValue(value, updateParent: updateParent, emitEvent: emitEvent);
}