isLeaf property
bool
get
isLeaf
Whether this node is a leaf node. A leaf node has no children.
Implementation
bool get isLeaf => children == null || children!.isEmpty;
Whether this node is a leaf node. A leaf node has no children.
bool get isLeaf => children == null || children!.isEmpty;