FormFieldModel constructor

FormFieldModel(
  1. WidgetModel? parent,
  2. String? id, {
  3. dynamic error,
  4. dynamic errortext,
  5. dynamic validationHasHit,
  6. dynamic hasDefaulted,
  7. dynamic editable,
  8. dynamic enabled,
  9. dynamic post,
  10. dynamic mandatory,
  11. dynamic onchange,
  12. dynamic onfocuslost,
  13. dynamic touched,
  14. dynamic alarmerrortext,
  15. dynamic systemerrortext,
})

Implementation

FormFieldModel(WidgetModel? parent, String? id,
    {
      dynamic error,
      dynamic errortext,
      dynamic validationHasHit,
      dynamic hasDefaulted,
      dynamic editable,
      dynamic enabled,
      dynamic post,
      dynamic mandatory,
      dynamic onchange,
      dynamic onfocuslost,
      dynamic touched,
      dynamic alarmerrortext,
      dynamic systemerrortext,
    })
    : super(parent, id) {
  if (error != null) this.error = error;
  if (errortext != null) this.errortext = errortext;
  if (alarmerrortext != null) this.alarmerrortext = alarmerrortext;
  if (systemerrortext != null) this.systemerrortext = systemerrortext;
  if (editable != null) this.editable = editable;
  if (enabled != null) this.enabled = enabled;
  if (post != null) this.post = post;
  if (mandatory != null) this.mandatory = mandatory;
  if (onchange      != null)  this.onchange      = onchange;
  if (touched != null) this.touched = touched;
  if (onfocuslost != null) this.onfocuslost = onfocuslost;


  this.validationHasHit = false;
  this.hasDefaulted = false;

  alarming = false;
  dirty = false;
}