id property
String
get
id
Returns the id of the element, or an empty string if it is not present or this Node is not an html Element.
Implementation
String get id {
if (node is html.Element) {
return (node as html.Element).id;
}
return '';
}