ngAfterChanges method
Implementation
@override
void ngAfterChanges() {
// Update the control value first so that when the control is setup it has
// the correct initial value.
if (_modelChanged) {
_modelChanged = false;
if (!identical(_model, viewModel)) {
form!.updateValue(model);
viewModel = model;
}
}
if (_formChanged) {
_formChanged = false;
setUpControl(form!, this);
form!.updateValueAndValidity(emitEvent: false);
}
}