$option function

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

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}) {
  return OPTIONElement(
      classes: classes,
      style: style,
      attributes: attributes,
      value: value ?? valueAndText,
      label: label,
      selected: selected,
      disabled: disabled,
      text: DOMNode.toText(text ?? valueAndText));
}