hasOnlyOneChild property

bool get hasOnlyOneChild

Implementation

bool get hasOnlyOneChild => children.length == 1;