From 76077df63f60c720df5a7459bab2b94bd9faa0fd Mon Sep 17 00:00:00 2001 From: Abhinav Goel Date: Mon, 14 Oct 2024 22:57:12 +0530 Subject: [PATCH] Added Named Parameter formats to analyzeI mage method of MobileScanner Controller --- lib/src/mobile_scanner_controller.dart | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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.