moveNode method

void moveNode(
  1. NodeId id, {
  2. required int targetLayerIndex,
  3. int? timestampMs,
})

Moves a node by id to another layer and emits an action.

Throws RangeError if targetLayerIndex is out of bounds.

Implementation

void moveNode(NodeId id, {required int targetLayerIndex, int? timestampMs}) {
  _sceneCommands.moveNode(
    id,
    targetLayerIndex: targetLayerIndex,
    timestampMs: timestampMs,
  );
}