decodeFile method
Decodes barcodes from an image file.
The filename
parameter should be the path or URL of the image file.
Implementation
Future<List<Map<dynamic, dynamic>>> decodeFile(String filename) async {
CapturedResult barcodeResults =
await handleThenable(_barcodeReader!.capture(filename, ""));
if (barcodeResults.errorCode != 0) {
return _errorWrapper(
barcodeResults.errorCode, barcodeResults.errorString);
}
return _resultWrapper(barcodeResults.items);
}