elementName property
String
get
elementName
Returns the name of the Html element, or an empty string if the node is a text content node, comment node, or any other node without a name.
Implementation
String get elementName {
if (node is html.Element) {
return (node as html.Element).localName ?? '';
}
return '';
}