isLeaf property

bool get isLeaf

Returns true if this node has no children.

Implementation

bool get isLeaf => children.isEmpty;