neel-sharma-quad

added raw in BarcodeCapture class

... ... @@ -341,6 +341,7 @@ class MobileScannerController {
.toList();
_barcodesController.add(
BarcodeCapture(
raw: data,
barcodes: parsed,
image: event['image'] as Uint8List?,
width: event['width'] as double?,
... ... @@ -351,6 +352,7 @@ class MobileScannerController {
case 'barcodeMac':
_barcodesController.add(
BarcodeCapture(
raw: data,
barcodes: [
Barcode(
rawValue: (data as Map)['payload'] as String?,
... ... @@ -363,6 +365,7 @@ class MobileScannerController {
final barcode = data as Map?;
_barcodesController.add(
BarcodeCapture(
raw: data,
barcodes: [
if (barcode != null)
Barcode(
... ...
... ... @@ -9,6 +9,7 @@ import 'package:mobile_scanner/src/objects/barcode.dart';
/// [image] If enabled, an image of the scanned frame.
class BarcodeCapture {
final List<Barcode> barcodes;
final dynamic raw;
final Uint8List? image;
... ... @@ -18,6 +19,7 @@ class BarcodeCapture {
BarcodeCapture({
required this.barcodes,
required this.raw,
this.image,
this.width,
this.height,
... ...