VariableModel constructor
VariableModel(
- WidgetModel parent,
- String? id, {
- String? type,
- dynamic value,
- dynamic onchange,
- bool? constant,
Implementation
VariableModel(WidgetModel super.parent, super.id,
{String? type, dynamic value, dynamic onchange, bool? constant}) {
this.constant = constant ?? false;
if (value != null) this.value = value;
if (onchange != null) this.onchange = onchange;
}