BarcodeItem constructor

BarcodeItem({
  1. required String text,
  2. required Uint8List rawBytes,
  3. required List<RangeEncoding> rawBytesEncodings,
  4. required StructuredAppendInfo? structuredAppendInfo,
  5. BarcodeFormat format = BarcodeFormat.NONE,
  6. required List<Point<int>> quad,
  7. required List<Point<double>> quadNormalized,
  8. required List<Point<int>> extendedQuad,
  9. required List<Point<double>> extendedQuadNormalized,
  10. bool isUpsideDown = false,
  11. ImageRef? sourceImage,
  12. required String upcEanExtension,
  13. bool isGS1Message = false,
  14. bool isGS1CompositePart = false,
  15. int dataBarStackSize = 1,
  16. double sizeScore = 0.0,
  17. required GenericDocument? extractedDocument,
  18. int globalIndex = -1,
})

Implementation

BarcodeItem({
  required this.text,
  required this.rawBytes,
  required this.rawBytesEncodings,
  required this.structuredAppendInfo,
  this.format = BarcodeFormat.NONE,
  required this.quad,
  required this.quadNormalized,
  required this.extendedQuad,
  required this.extendedQuadNormalized,
  this.isUpsideDown = false,
  ImageRef? sourceImage,
  required this.upcEanExtension,
  this.isGS1Message = false,
  this.isGS1CompositePart = false,
  this.dataBarStackSize = 1,
  this.sizeScore = 0.0,
  required this.extractedDocument,
  this.globalIndex = -1,
}) : sourceImage = sourceImage ?? null;