toDart method
Implementation
SyncedFrame toDart() {
return SyncedFrame(
pixels: Uint8List.fromList(pixels.asTypedList(size)),
size: size,
width: width,
height: height,
bytesPerRow: bytesPerRow,
pixelFormat: pixelFormat,
isMirrored: isMirrored,
depth: Uint8List.fromList(depth.asTypedList(depthSize)),
depthSize: depthSize,
depthWidth: depthWidth,
depthHeight: depthHeight,
depthBytesPerRow: depthBytesPerRow,
timestamp: timestamp,
textureId: textureId,
);
}