toDecodeBarcodeParams method

DecodeBarcodeParams toDecodeBarcodeParams(
  1. Uint8List bytes
)

Implementation

DecodeBarcodeParams toDecodeBarcodeParams(Uint8List bytes) {
  final Pointer<DecodeBarcodeParams> p = calloc<DecodeBarcodeParams>();
  p.ref.bytes = bytes.copyToNativePointer();
  p.ref.imageFormat = imageFormat;
  p.ref.format = format;
  p.ref.width = width;
  p.ref.height = height;
  p.ref.cropLeft = cropLeft;
  p.ref.cropTop = cropTop;
  p.ref.cropWidth = cropWidth;
  p.ref.cropHeight = cropHeight;
  p.ref.tryHarder = tryHarder;
  p.ref.tryRotate = tryRotate;
  p.ref.tryInvert = tryInverted;
  return p.ref;
}