VariableModel constructor

VariableModel(
  1. WidgetModel parent,
  2. String? id, {
  3. String? type,
  4. dynamic value,
  5. dynamic onchange,
  6. bool? constant,
})

Implementation

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