QRCodeDartScanView constructor

const QRCodeDartScanView({
  1. Key? key,
  2. TypeCamera typeCamera = TypeCamera.back,
  3. TypeScan typeScan = TypeScan.live,
  4. ValueChanged<Result>? onCapture,
  5. QRCodeDartScanResolutionPreset resolutionPreset = QRCodeDartScanResolutionPreset.medium,
  6. QRCodeDartScanController? controller,
  7. List<BarcodeFormat> formats = QRCodeDartScanDecoder.acceptedFormats,
  8. Widget? child,
  9. TakePictureButtonBuilder? takePictureButtonBuilder,
  10. double? widthPreview,
  11. double? heightPreview,
  12. Duration intervalScan = const Duration(milliseconds: 500),
  13. OnResultInterceptorCallback? onResultInterceptor,
  14. DeviceOrientation? lockCaptureOrientation = DeviceOrientation.portraitUp,
  15. ImageDecodeOrientation imageDecodeOrientation = ImageDecodeOrientation.original,
  16. ValueChanged<String>? onCameraError,
  17. int? fps,
  18. int? videoBitrate,
  19. CroppingStrategy? croppingStrategy,
  20. Offset? focusPoint,
  21. Duration imageStreamTimeout = const Duration(seconds: 2),
})

Implementation

const QRCodeDartScanView({
  Key? key,
  this.typeCamera = TypeCamera.back,
  this.typeScan = TypeScan.live,
  this.onCapture,
  this.resolutionPreset = QRCodeDartScanResolutionPreset.medium,
  this.controller,
  this.formats = QRCodeDartScanDecoder.acceptedFormats,
  this.child,
  this.takePictureButtonBuilder,
  this.widthPreview,
  this.heightPreview,
  this.intervalScan = const Duration(milliseconds: 500),
  this.onResultInterceptor,
  this.lockCaptureOrientation = DeviceOrientation.portraitUp,
  this.imageDecodeOrientation = ImageDecodeOrientation.original,
  this.onCameraError,
  this.fps,
  this.videoBitrate,
  this.croppingStrategy,
  this.focusPoint,
  this.imageStreamTimeout = const Duration(seconds: 2),
}) : super(key: key);