hasChildren property
bool
get
hasChildren
Whether this component has any children. Avoids the creation of the children container if not necessary.
Implementation
bool get hasChildren => _children?.isNotEmpty ?? false;