option constructor

const option(
  1. List<Component> children, {
  2. String? label,
  3. String? value,
  4. bool selected = false,
  5. bool disabled = false,
  6. String? id,
  7. String? classes,
  8. Styles? styles,
  9. Map<String, String>? attributes,
  10. Map<String, EventCallback>? events,
  11. Key? key,
})

The <option> HTML element is used to define an item contained in a <select>, an <optgroup>, or a <datalist> element. As such, <option> can represent menu items in popups and other lists of items in an HTML document.

Implementation

const option(
  this.children, {
  this.label,
  this.value,
  this.selected = false,
  this.disabled = false,
  this.id,
  this.classes,
  this.styles,
  this.attributes,
  this.events,
  super.key,
});