markAsDisabled method
Disables the control.
This means the control is exempt from validation checks and excluded
from the aggregate value of any parent. Its status is DISABLED
.
If the control has children, all children are also disabled.
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 markAsDisabled({bool updateParent = true, bool emitEvent = true}) {
for (final control in _controls) {
control.markAsDisabled(updateParent: true, emitEvent: emitEvent);
}
super.markAsDisabled(updateParent: updateParent, emitEvent: emitEvent);
}