Showing
1 changed file
with
6 additions
and
0 deletions
| @@ -35,6 +35,12 @@ class MobileScanner extends StatefulWidget { | @@ -35,6 +35,12 @@ class MobileScanner extends StatefulWidget { | ||
| 35 | 35 | ||
| 36 | /// The function that signals when new codes were detected by the [controller]. | 36 | /// The function that signals when new codes were detected by the [controller]. |
| 37 | /// If null, use the controller.barcodes stream directly to capture barcodes. | 37 | /// If null, use the controller.barcodes stream directly to capture barcodes. |
| 38 | + /// | ||
| 39 | + /// This method does not receive any [MobileScannerBarcodeException]s | ||
| 40 | + /// that are emitted by the scanner. | ||
| 41 | + /// | ||
| 42 | + /// To handle both [BarcodeCapture]s and [MobileScannerBarcodeException]s, | ||
| 43 | + /// use the [MobileScannerController.barcodes] stream directly. | ||
| 38 | final void Function(BarcodeCapture barcodes)? onDetect; | 44 | final void Function(BarcodeCapture barcodes)? onDetect; |
| 39 | 45 | ||
| 40 | /// The error builder for the camera preview. | 46 | /// The error builder for the camera preview. |
-
Please register or login to post a comment