ScribbleModel constructor

ScribbleModel(
  1. WidgetModel parent,
  2. String? id, {
  3. dynamic mandatory,
  4. dynamic editable,
  5. dynamic enabled,
  6. dynamic value,
  7. dynamic height,
  8. dynamic width,
  9. dynamic hint,
  10. dynamic size,
  11. dynamic color,
  12. dynamic weight,
  13. dynamic style,
  14. dynamic post,
})

Implementation

ScribbleModel(
  WidgetModel super.parent,
  super.id, {
  dynamic mandatory,
  dynamic editable,
  dynamic enabled,
  dynamic value,
  dynamic height,
  dynamic width,
  dynamic hint,
  dynamic size,
  dynamic color,
  dynamic weight,
  dynamic style,
  dynamic post,
}) {
  if (width != null) this.width = width;
  if (height != null) this.height = height;

  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 (hint != null) this.hint = hint;
  if (size != null) this.size = size;
  if (color != null) this.color = color;
  if (weight != null) this.weight = weight;
  if (style != null) this.style = style;
  if (post != null) this.post = post;

  alarming = false;
  dirty = false;
}