moveNode method
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,
);
}