hasChildren property

bool get hasChildren

Whether this node has a non-zero number of children.

Implementation

bool get hasChildren => _children?.isNotEmpty ?? false;