updateValue method
void
updateValue(})
override
Sets the value
of the FormControl.
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 updateValue(
T? value, {
bool updateParent = true,
bool emitEvent = true,
}) {
if (_value != value) {
_value = value;
updateValueAndValidity(
updateParent: updateParent,
emitEvent: emitEvent,
);
}
}