hasContent method

bool hasContent()

Return true if the node has children or text.

Implementation

bool hasContent() => nodes.isNotEmpty;