copy method
Creates an independent deep copy of this stream info (including its description). The copy owns its native handle: call destroy on it when done; it stays valid after this object is destroyed.
Implementation
LSLStreamInfoWithMetadata copy() {
final copied = lsl_copy_streaminfo(_infoBang);
if (copied.isNullPointer) {
throw LSLException('Failed to copy stream info');
}
return LSLStreamInfoWithMetadata.fromStreamInfo(copied);
}