layout method

void layout(
  1. Constraints constraints
)

Entry point for layout.

Settling the owner's mid-pass request here is what lets PipelineOwner.flushLayout tell a satisfied request from one to retry.

Implementation

void layout(Constraints constraints) {
  _pipelineOwner?._relayoutRequests.remove(this);
  performLayout(constraints);
  _needsLayout = false;
}