attach method

void attach(
  1. PipelineManifold manifold
)

Mark this PipelineOwner as attached to the given PipelineManifold.

Typically, this is only called directly on the root PipelineOwner. Children are automatically attached to their parent's PipelineManifold when adoptChild is called.

Implementation

void attach(PipelineManifold manifold) {
  assert(_manifold == null);
  _manifold = manifold;
  _manifold!.addListener(_updateSemanticsOwner);
  _updateSemanticsOwner();

  for (final PipelineOwner child in _children) {
    child.attach(manifold);
  }
}