setChild method
Implementation
void setChild(Widget child) {
final existingPropertyIndex = properties
.indexWhere((element) => element.property == NodeProperties.child);
if (existingPropertyIndex >= 0) {
} else {
properties.add(ChildProperty(child: child));
}
}