decode method

  1. @override
Result decode(
  1. BinaryBitmap image, [
  2. Map<DecodeHintType, Object>? hints
])
override

Locates and decodes a PDF417 code in an image.

@return a String representing the content encoded by the PDF417 code @throws NotFoundException if a PDF417 code cannot be found, @throws FormatException if a PDF417 cannot be decoded

Implementation

@override
Result decode(BinaryBitmap image, [Map<DecodeHintType, Object>? hints]) {
  final result = _decodeStatic(image, hints, false);
  if (result.isEmpty) {
    // || result[0] == null
    throw NotFoundException.instance;
  }
  return result[0];
}