optgroup constructor

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

The <optgroup> HTML element creates a grouping of options within a <select> element.

Implementation

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