$label function

DOMElement $label({
  1. Object? id,
  2. String? forID,
  3. Object? classes,
  4. Object? style,
  5. Map<String, String>? attributes,
  6. Object? content,
  7. bool? hidden,
  8. bool commented = false,
})

Creates a label node.

Implementation

DOMElement $label({
  Object? id,
  String? forID,
  Object? classes,
  Object? style,
  Map<String, String>? attributes,
  Object? content,
  bool? hidden,
  bool commented = false,
}) => $tag(
  'label',
  id: id,
  classes: classes,
  style: style,
  attributes: {'for': ?forID, ...?attributes},
  content: content,
  hidden: hidden,
  commented: commented,
);