onDetect property
The function that signals when new codes were detected by the controller.
To handle both BarcodeCaptures and MobileScannerBarcodeExceptions, use the MobileScannerController.barcodes stream directly (recommended), or provide a function to onDetectError.
Implementation
final void Function(BarcodeCapture barcodes)? onDetect;