getElementTagName function

String? getElementTagName(
  1. Node node
)

Returns the node tag name. Returns null if node is not an Element.

Implementation

String? getElementTagName(Node node) =>
    node is Element ? node.tagName.toLowerCase() : null;