isLeaf property
bool
get
isLeaf
Checks if this is a leaf node
Implementation
bool get isLeaf => left == null && right == null;
Checks if this is a leaf node
bool get isLeaf => left == null && right == null;