markNeedsLayout method

void markNeedsLayout()

Implementation

void markNeedsLayout() {
  if (_needsLayout) {
    return;
  }
  _needsLayout = true;
  if (owner case final LayoutPipelineOwner owner?
      when (_isRelayoutBoundary ?? false)) {
    owner._nodesNeedingLayout.add(this);
    owner.requestVisualUpdate();
  } else if (parent != null) {
    parent!.markNeedsLayout();
  }
}