isTextNode property

bool get isTextNode

Whether this node represents a text node

Implementation

bool get isTextNode => tag == '#text' && textContent != null;