isLeaf property

bool isLeaf

Implementation

bool get isLeaf => this.children?.isEmpty ?? true;