isParent property

bool get isParent

Whether this object has children Node.

Implementation

bool get isParent => children.isNotEmpty || parent;