isEmpty property

bool get isEmpty

Whether there is no value anywhere in the tree.

Implementation

bool get isEmpty => value == null && children.isEmpty;