isStringElement property

  1. @override
bool get isStringElement
override

Returns true if this node is a String element (a Text node or DOMElement.isStringTagName).

Implementation

@override
bool get isStringElement {
  if (node is Text) {
    return true;
  } else if (node is Element) {
    return DOMElement.isStringTagName(tagName);
  }
  return false;
}