bool hasChildren

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

Source

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