markAsTouched method
Marks the control as touched
.
This will also mark all direct ancestors as touched
to maintain the
model.
Implementation
void markAsTouched({bool updateParent = true}) {
_touched = true;
var parent = _parent;
if (parent != null && updateParent) {
parent.markAsTouched(updateParent: updateParent);
}
}