form property
Implementation
FormElement? get form {
var ancestor = parent;
while (ancestor != null) {
if (ancestor is FormElement) {
return ancestor;
}
ancestor = ancestor.parent;
}
return null;
}
FormElement? get form {
var ancestor = parent;
while (ancestor != null) {
if (ancestor is FormElement) {
return ancestor;
}
ancestor = ancestor.parent;
}
return null;
}