OPTIONElement constructor
OPTIONElement({})
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),
);