prependCopy method
Inserts a deep copy of node as the first child; returns the copy.
Implementation
LSLXmlNode prependCopy(LSLXml node) {
final copyPtr = lsl_prepend_copy(xmlPtr, node.xmlPtr);
if (copyPtr.isNullPointer) {
throw LSLException('Failed to prepend copy of node');
}
return LSLXmlNode.fromXmlPtr(copyPtr);
}