SelectModel constructor

SelectModel(
  1. WidgetModel parent,
  2. String? id, {
  3. dynamic visible,
  4. dynamic hint,
  5. dynamic border,
  6. dynamic mandatory,
  7. dynamic editable,
  8. dynamic enabled,
  9. dynamic inputenabled,
  10. dynamic value,
  11. dynamic defaultValue,
  12. dynamic width,
  13. dynamic onchange,
  14. dynamic post,
  15. dynamic typeahead,
  16. dynamic bold,
  17. dynamic italic,
  18. String? postbroker,
  19. dynamic bordercolor,
  20. dynamic color,
  21. dynamic borderwidth,
  22. dynamic radius,
  23. dynamic matchtype,
  24. dynamic label,
})

Implementation

SelectModel(WidgetModel parent, String? id,
    {dynamic visible,
      dynamic hint,
      dynamic border,
      dynamic mandatory,
      dynamic editable,
      dynamic enabled,
      dynamic inputenabled,
      dynamic value,
      dynamic defaultValue,
      dynamic width,
      dynamic onchange,
      dynamic post,
      dynamic typeahead,
      dynamic bold,
      dynamic italic,
      String? postbroker,
      dynamic bordercolor,
      dynamic color,
      dynamic borderwidth,
      dynamic radius,
      dynamic matchtype,
      dynamic label,
      })
    : super(parent, id)
{
  // instantiate busy observable
  busy = false;

  if (mandatory     != null)  this.mandatory    = mandatory;
  if (bordercolor   != null)  this.bordercolor  = bordercolor;
  if (color         != null)  this.color        = color;
  if (radius        != null)  this.radius       = radius;
  if (borderwidth   != null)  this.borderwidth  = borderwidth;
  if (border        != null)  this.border       = border;
  if (hint          != null)  this.hint         = hint;
  if (editable      != null)  this.editable     = editable;
  if (enabled       != null)  this.enabled      = enabled;
  if (inputenabled  != null) this.inputenabled  = inputenabled;
  if (value         != null) this.value         = value;
  if (defaultValue  != null) this.defaultValue  = defaultValue;
  if (width         != null) this.width         = width;
  if (onchange      != null) this.onchange      = onchange;
  if (post          != null) this.post          = post;
  if (typeahead     != null) this.typeahead     = typeahead;
  if (matchtype     != null) this.matchtype     = matchtype;
  if (label         != null) this.label         = label;

  this.alarming = false;
  this.dirty    = false;
}