setChild method

void setChild(
  1. Widget child
)

Implementation

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