BarcodeScannerWidget constructor

const BarcodeScannerWidget({
  1. Key? key,
  2. CameraSelector? cameraSelector,
  3. bool startScanning = true,
  4. bool stopScanOnBarcodeDetected = true,
  5. bool restartScanAfterEvent = true,
  6. required dynamic onBarcodeDetected(
    1. Barcode barcode
    ),
  7. required dynamic onError(
    1. dynamic error
    ),
})

Implementation

const BarcodeScannerWidget({
  Key? key,
  this.cameraSelector,
  this.startScanning = true,
  this.stopScanOnBarcodeDetected = true,
  this.restartScanAfterEvent = true,
  required this.onBarcodeDetected,
  required this.onError
}) : super(key: key);