readBarcodeFromStack method

Future<String> readBarcodeFromStack(
  1. ReadBarcodeProps readBarcodeProps
)

It reads a barcode from the stack.

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

Implementation

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