hasChildren property

bool get hasChildren

Whether this node has any children

Implementation

bool get hasChildren => children.isNotEmpty;