decodeFile method

Future<List<Map>> decodeFile(
  1. String filename
)

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, ""));

  return _resultWrapper(barcodeResults.items);
}