scheduleInitialSemantics method

void scheduleInitialSemantics ()

Bootstrap the semantics reporting mechanism by marking this node as needing a semantics update.

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

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

Implementation

void scheduleInitialSemantics() {
  assert(attached);
  assert(parent is! RenderObject);
  assert(!owner._debugDoingSemantics);
  assert(_semantics == null);
  assert(_needsSemanticsUpdate);
  assert(owner._semanticsOwner != null);
  owner._nodesNeedingSemantics.add(this);
  owner.requestVisualUpdate();
}