scheduleInitialLayout method

void scheduleInitialLayout ()

Bootstrap the rendering pipeline by scheduling the very first layout.

Requires this render object to be attached and that this render object is the root of the render tree.

See RenderView for an example of how this function is used.

Implementation

void scheduleInitialLayout() {
  assert(attached);
  assert(parent is! RenderObject);
  assert(!owner._debugDoingLayout);
  assert(_relayoutBoundary == null);
  _relayoutBoundary = this;
  assert(() {
    _debugCanParentUseSize = false;
    return true;
  }());
  owner._nodesNeedingLayout.add(this);
}