Optgroup constructor
Optgroup({})
Creates an <optgroup> element descriptor with label shorthand.
Implementation
Optgroup({
required String label,
super.className,
Map<String, String>? attrs,
super.children = const [],
}) : super(
'optgroup',
attrs: _mergeAttrs(attrs, {'label': label}),
);