isLeaf property

bool get isLeaf

Implementation

bool get isLeaf => children?.isNotEmpty != true;