$tag function

DOMElement $tag(
  1. String tag, {
  2. Object? id,
  3. Object? classes,
  4. Object? style,
  5. Map<String, dynamic>? attributes,
  6. Object? content,
  7. bool? hidden,
  8. String? role,
  9. String? ariaLabel,
  10. Map<String, Object?>? aria,
  11. int? tabIndex,
  12. bool commented = false,
})

Creates a node with tag.

Implementation

DOMElement $tag(
  String tag, {
  Object? id,
  Object? classes,
  Object? style,
  Map<String, dynamic>? attributes,
  Object? content,
  bool? hidden,
  String? role,
  String? ariaLabel,
  Map<String, Object?>? aria,
  int? tabIndex,
  bool commented = false,
}) {
  return DOMElement(
    tag,
    id: id,
    classes: classes,
    style: style,
    attributes: attributes,
    content: content,
    hidden: hidden,
    role: role,
    ariaLabel: ariaLabel,
    aria: aria,
    tabIndex: tabIndex,
    commented: commented,
  );
}