attachRenderObject method

void attachRenderObject (
  1. dynamic newSlot
)

Add renderObject to the render tree at the location specified by slot.

The default implementation of this function simply calls attachRenderObject recursively on its child. The RenderObjectElement.attachRenderObject override does the actual work of adding renderObject to the render tree.

Implementation

void attachRenderObject(dynamic newSlot) {
  assert(_slot == null);
  visitChildren((Element child) {
    child.attachRenderObject(newSlot);
  });
  _slot = newSlot;
}