DatepickerModel constructor

DatepickerModel(
  1. WidgetModel parent,
  2. String? id, {
  3. String? type,
  4. dynamic visible,
  5. dynamic mandatory,
  6. dynamic enabled,
  7. dynamic editable,
  8. dynamic value,
  9. dynamic defaultValue,
  10. dynamic width,
  11. dynamic hint,
  12. dynamic format,
  13. dynamic post,
  14. dynamic onchange,
  15. dynamic radius,
  16. dynamic bordercolor,
  17. dynamic borderwidth,
  18. dynamic border,
  19. dynamic textcolor,
  20. dynamic color,
  21. dynamic weight,
  22. dynamic style,
  23. dynamic dense,
  24. dynamic clear,
  25. dynamic error,
  26. dynamic errortext,
  27. dynamic size,
  28. dynamic padding,
  29. dynamic icon,
})

Implementation

DatepickerModel(
  WidgetModel parent,
  String? id, {
  String? type,
  dynamic visible,
  dynamic mandatory,
  dynamic enabled,
  dynamic editable,
  dynamic value,
  dynamic defaultValue,
  dynamic width,
  dynamic hint,
  dynamic format,
  dynamic post,
  dynamic onchange,
  dynamic radius,
  dynamic bordercolor,
  dynamic borderwidth,
  dynamic border,
  dynamic textcolor,
  dynamic color,
  dynamic weight,
  dynamic style,
  dynamic dense,
  dynamic clear,
  dynamic error,
  dynamic errortext,
  dynamic size,
  dynamic padding,
  dynamic icon,
}) : super(parent, id)
{
  if (type         != null) this.type = type;
  if (mandatory    != null) this.mandatory = mandatory;
  if (editable     != null) this.editable = editable;
  if (enabled      != null) this.enabled = enabled;
  if (value        != null) this.value = value;
  if (defaultValue != null) this.defaultValue = defaultValue;
  if (width        != null) this.width = width;
  if (hint         != null) this.hint = hint;
  if (format       != null) this.format = format;
  if (post         != null) this.post = post;
  if (onchange     != null) this.onchange = onchange;
  if (radius       != null) this.radius = radius;
  if (bordercolor  != null) this.bordercolor = bordercolor;
  if (borderwidth  != null) this.borderwidth = borderwidth;
  if (border       != null) this.border = border;
  if (textcolor    != null) this.textcolor = textcolor;
  if (color        != null) this.color = color;
  if (weight       != null) this.weight = weight;
  if (style        != null) this.style = style;
  if (dense        != null) this.dense = dense;
  if (clear        != null) this.clear = clear;
  if (error        != null) this.error = error;
  if (errortext    != null) this.errortext = errortext;
  if (size         != null) this.size = size;
  if (padding      != null) this.padding = padding;
  if (icon         != null) this.icon = icon;

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