VariableModel constructor

VariableModel(
  1. WidgetModel parent,
  2. String? id, {
  3. String? type,
  4. dynamic value,
  5. dynamic onchange,
  6. 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;
}