addChild method

void addChild(
  1. RenderObjectData child
)

Adds the given RenderObjectData as a child of this RenderObjectData.

Implementation

void addChild(RenderObjectData child) {
  assert(child.parent == null);
  assert(!children.contains(child));
  child._parent = this;
  children.add(child);
}