$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. 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,
    bool commented = false}) {
  return DOMElement(tag,
      id: id,
      classes: classes,
      style: style,
      attributes: attributes,
      content: content,
      hidden: hidden,
      commented: commented);
}