toDart method

CameraFrame toDart()

Implementation

CameraFrame toDart() {
  return CameraFrame(
    pixels: Uint8List.fromList(pixels.asTypedList(size)),
    size: size,
    width: width,
    height: height,
    timestamp: timestamp,
    orientation: orientation,
    textureId: textureId,
    bytesPerRow: bytesPerRow,
    pixelFormat: pixelFormat,
    isMirrored: isMirrored,
  );
}