parseDocument method

Future<Result<BarcodeDocumentParserResult>> parseDocument(
  1. String rawText, {
  2. List<BarcodeDocumentFormat>? acceptedFormats,
})

Parses a barcode document from the given raw text content with the specified accepted formats.

rawText - The raw text content representing the document to be parsed. acceptedFormats - The list of accepted barcode document formats to be parsed. If not provided, all supported formats will be parsed.

Returns a Future that completes with the result of the Barcode document parsing operation.

Implementation

Future<Result<BarcodeDocumentParserResult>> parseDocument(String rawText,
    {List<BarcodeDocumentFormat>? acceptedFormats}) {
  return ScanbotBarcodeImpl.parseDocument(rawText, acceptedFormats);
}