Whether the children list contains the given component.
This method uses reference equality.
bool contains(Component c) => _children?.contains(c) ?? false;