$tagHTML<T extends DOMElement> function

T? $tagHTML<T extends DOMElement>(
  1. Object? html
)

Creates a tag node from html.

Implementation

T? $tagHTML<T extends DOMElement>(Object? html) =>
    $html<DOMElement>(html).firstWhereOrNull((e) => e is T) as T?;