OPTIONElement constructor

OPTIONElement({
  1. Map<String, dynamic>? attributes,
  2. Object? classes,
  3. Object? style,
  4. Object? value,
  5. String? label,
  6. bool? selected,
  7. bool disabled = false,
  8. String? text,
})

Implementation

OPTIONElement(
    {Map<String, dynamic>? attributes,
    Object? classes,
    Object? style,
    Object? value,
    String? label,
    bool? selected,
    bool disabled = false,
    String? text})
    : super._(
        'option',
        classes: classes,
        style: style,
        attributes: {
          ...?attributes,
          if (value != null) 'value': parseString(value),
          if (label != null) 'label': label,
          if (selected != null) 'selected': parseBool(selected),
          if (disabled) 'disabled': disabled,
        },
        content: TextNode.toTextNode(text),
      );