isParent property

bool isParent

Whether this object has children Node.

Implementation

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