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