diff --git a/lib/src/mobile_scanner_controller.dart b/lib/src/mobile_scanner_controller.dart index e4edd86b4..18ac4c23c 100644 --- a/lib/src/mobile_scanner_controller.dart +++ b/lib/src/mobile_scanner_controller.dart @@ -193,8 +193,11 @@ class MobileScannerController extends ValueNotifier { /// /// If an error occurred during the analysis of the image, /// a [MobileScannerBarcodeException] error is thrown. - Future analyzeImage(String path) { - return MobileScannerPlatform.instance.analyzeImage(path); + Future analyzeImage( + String path, { + List formats = const [], + }) { + return MobileScannerPlatform.instance.analyzeImage(path,formats: formats); } /// Build a camera preview widget.