isLeaf property

bool get isLeaf

Whether this element has no children.

Implementation

bool get isLeaf => _children.isEmpty;