OptionModel constructor

OptionModel(
  1. Model parent,
  2. String? id, {
  3. dynamic data,
  4. String? value,
  5. String? label,
})

Implementation

OptionModel(super.parent, super.id, {dynamic data, String? value, String? label})
    : super(scope: Scope(parent: parent.scope)) {
  this.data = data;
  if (value != null) this.value = value;
  if (label != null) this.label = label;
}