readBarcode method

Future<String> readBarcode(
  1. ReadBarcodeProps readBarcodeProps
)

This function returns a Future

Args: readBarcodeProps (ReadBarcodeProps): This is a class that contains the properties for the barcode reading.

Implementation

Future<String> readBarcode(ReadBarcodeProps readBarcodeProps) async {
  final result = await tryReadBarCode(
    readBarcodeProps,
    BarcodeReaderWebassemblyEvent.readBarcode,
  );
  return result;
}