isLeaf property

bool get isLeaf

Implementation

bool get isLeaf => children == null || children!.isEmpty;