bringForward static method

Moves id one step toward the front within its sibling stack.

Implementation

static CanvasSceneDocument bringForward(CanvasSceneDocument doc, NodeId id) {
  return _moveWithinCurrentParent(
    doc,
    id,
    targetIndexFor: (index, _) => index + 1,
  );
}