diff --git a/lib/src/mobile_scanner_controller.dart b/lib/src/mobile_scanner_controller.dart index e9dc8ce5..7a808049 100644 --- a/lib/src/mobile_scanner_controller.dart +++ b/lib/src/mobile_scanner_controller.dart @@ -440,6 +440,11 @@ class MobileScannerController extends ValueNotifier { await MobileScannerPlatform.instance.dispose(); } + /// Exposes the [addBarcode] method. + /// + /// This method is used for adding a barcode to the barcode stream. + /// so when using [analyzeImage] the return value + /// can be used in [MobileScanner] using [onDetect] callback. void addBarcode(BarcodeCapture? barcode) { if (_barcodesController.isClosed || barcode == null) { return;