hasContent method Null safety

bool hasContent()

Return true if the node has children or text.

Implementation

bool hasContent() => nodes.isNotEmpty;