isLeaf property

bool get isLeaf

Checks if this is a leaf node

Implementation

bool get isLeaf => left == null && right == null;