moveNode method

void moveNode(
  1. int nodeId,
  2. VirtualNode parentNode,
  3. int index
)

Implementation

void moveNode(int nodeId, VirtualNode parentNode, int index) {
  VirtualNode? child = _virtualNodes[nodeId];
  if (child != null) {
    parentNode.resetChildIndex(child, index);
    _updateNodeIdList.add(parentNode.id);
  }
}