barcode_capture.dart 435 Bytes
import 'dart:typed_data';

import 'package:mobile_scanner/src/objects/barcode.dart';

/// The return object after a frame is scanned.
///
/// [barcodes] A list with barcodes. A scanned frame can contain multiple
/// barcodes.
/// [image] If enabled, an image of the scanned frame.
class BarcodeCapture {
  final List<Barcode> barcodes;

  final Uint8List? image;

  BarcodeCapture({
    required this.barcodes,
    this.image,
  });
}