form property

FormElement? get form
inherited

Implementation

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