toDart method

DepthFrame toDart()

Implementation

DepthFrame toDart() {
  return DepthFrame(
    data: Uint8List.fromList(data.asTypedList(size)),
    size: size,
    width: width,
    height: height,
    bytesPerRow: bytesPerRow,
    timestamp: timestamp,
    textureId: textureId,
  );
}