MobileScannerController constructor

MobileScannerController({
  1. CameraFacing facing = CameraFacing.back,
  2. DetectionSpeed detectionSpeed = DetectionSpeed.normal,
  3. int detectionTimeoutMs = 250,
  4. bool torchEnabled = false,
  5. List<BarcodeFormat>? formats,
  6. bool returnImage = false,
  7. @Deprecated('Instead, use the result of calling `start()` to determine if permissions were granted.') dynamic onPermissionSet(
    1. bool permissionGranted
    )?,
  8. 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,
});