FlMlKitScanning constructor
FlMlKitScanning({
- Key? key,
- List<
BarcodeFormat> ? barcodeFormats, - EventBarcodeListen? onDataChanged,
- Widget? overlay,
- ValueChanged<
FlashState> ? onFlashChanged, - bool autoScanning = true,
- ValueChanged<
CameraZoomState> ? onZoomChanged, - bool updateReset = false,
- CameraInfo? camera,
- CameraResolution resolution = CameraResolution.medium,
- BoxFit fit = BoxFit.fitWidth,
- Widget? uninitialized,
- double frequency = 500,
Implementation
FlMlKitScanning({
super.key,
List<BarcodeFormat>? barcodeFormats,
this.onDataChanged,
this.overlay,
this.onFlashChanged,
this.autoScanning = true,
this.onZoomChanged,
this.updateReset = false,
this.camera,
this.resolution = CameraResolution.medium,
this.fit = BoxFit.fitWidth,
this.uninitialized,
this.frequency = 500,
}) : barcodeFormats = barcodeFormats ?? <BarcodeFormat>[BarcodeFormat.qrCode];