fromNodeOutput static method

MatrixNode fromNodeOutput({
  1. required int x,
  2. required int y,
  3. required NodeOutput nodeOutput,
})

Implementation

static MatrixNode fromNodeOutput(
    {required int x, required int y, required NodeOutput nodeOutput}) {
  return MatrixNode(
    x: x,
    y: y,
    size: nodeOutput.size,
    id: nodeOutput.id,
    next: nodeOutput.next,
    anchorType: nodeOutput.anchorType,
    from: nodeOutput.from,
    to: nodeOutput.to,
    orientation: nodeOutput.orientation,
    isAnchor: nodeOutput.isAnchor,
    anchorMargin: nodeOutput.anchorMargin,
    passedIncomes: nodeOutput.passedIncomes,
    renderIncomes: nodeOutput.renderIncomes,
    childrenOnMatrix: nodeOutput.childrenOnMatrix,
  );
}