hasChildren property

bool hasChildren

Returns true if children isn't null or empty.

Implementation

bool get hasChildren => children?.isNotEmpty == true;