$option function
Creates an option node.
Implementation
OPTIONElement $option({
Object? classes,
Object? style,
Map<String, String>? attributes,
Object? value,
String? label,
bool? selected,
bool disabled = false,
Object? text,
Object? valueAndText,
String? role,
String? ariaLabel,
Map<String, Object?>? aria,
int? tabIndex,
}) {
return OPTIONElement(
classes: classes,
style: style,
attributes: attributes,
value: value ?? valueAndText,
label: label,
selected: selected,
disabled: disabled,
text: DOMNode.toText(text ?? valueAndText),
role: role,
ariaLabel: ariaLabel,
aria: aria,
tabIndex: tabIndex,
);
}