We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d6907f commit 516cb87Copy full SHA for 516cb87
lib/src/mobile_scanner_controller.dart
@@ -193,8 +193,10 @@ class MobileScannerController extends ValueNotifier<MobileScannerState> {
193
///
194
/// If an error occurred during the analysis of the image,
195
/// a [MobileScannerBarcodeException] error is thrown.
196
- Future<BarcodeCapture?> analyzeImage(String path) {
197
- return MobileScannerPlatform.instance.analyzeImage(path);
+ Future<BarcodeCapture?> analyzeImage(String path, {
+ List<BarcodeFormat> formats = const <BarcodeFormat>[],
198
+ }) {
199
+ return MobileScannerPlatform.instance.analyzeImage(path,formats: formats);
200
}
201
202
/// Build a camera preview widget.
0 commit comments