SwitchModel constructor
SwitchModel(
- WidgetModel parent,
- String? id, {
- String? type,
- dynamic visible,
- dynamic mandatory,
- dynamic editable,
- dynamic enabled,
- dynamic value,
- dynamic defaultValue,
- dynamic width,
- dynamic label,
- dynamic color,
- dynamic onchange,
- dynamic post,
Implementation
SwitchModel(
WidgetModel super.parent,
super.id, {
String? type,
dynamic visible,
dynamic mandatory,
dynamic editable,
dynamic enabled,
dynamic value,
dynamic defaultValue,
dynamic width,
dynamic label,
dynamic color,
dynamic onchange,
dynamic post,
}) {
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 (label != null) this.label = label;
if (color != null) this.color = color;
if (onchange != null) this.onchange = onchange;
if (post != null) this.post = post;
alarming = false;
dirty = false;
}