MobileScannerController constructor
MobileScannerController({
- CameraFacing facing = CameraFacing.back,
- DetectionSpeed detectionSpeed = DetectionSpeed.normal,
- int detectionTimeoutMs = 250,
- bool torchEnabled = false,
- List<
BarcodeFormat> ? formats, - bool returnImage = false,
- @Deprecated('Instead, use the result of calling `start()` to determine if permissions were granted.') dynamic onPermissionSet(
- bool permissionGranted
- bool autoStart = true,
Implementation
MobileScannerController({
this.facing = CameraFacing.back,
this.detectionSpeed = DetectionSpeed.normal,
this.detectionTimeoutMs = 250,
this.torchEnabled = false,
this.formats,
this.returnImage = false,
@Deprecated(
'Instead, use the result of calling `start()` to determine if permissions were granted.',
)
this.onPermissionSet,
this.autoStart = true,
});