QRCodeDartScanView constructor
const
QRCodeDartScanView({
- Key? key,
- TypeCamera typeCamera = TypeCamera.back,
- TypeScan typeScan = TypeScan.live,
- ValueChanged<
Result> ? onCapture, - QRCodeDartScanResolutionPreset resolutionPreset = QRCodeDartScanResolutionPreset.medium,
- QRCodeDartScanController? controller,
- List<
BarcodeFormat> formats = QRCodeDartScanDecoder.acceptedFormats, - Widget? child,
- TakePictureButtonBuilder? takePictureButtonBuilder,
- double? widthPreview,
- double? heightPreview,
- Duration intervalScan = const Duration(milliseconds: 500),
- OnResultInterceptorCallback? onResultInterceptor,
- DeviceOrientation? lockCaptureOrientation = DeviceOrientation.portraitUp,
- ImageDecodeOrientation imageDecodeOrientation = ImageDecodeOrientation.original,
- ValueChanged<
String> ? onCameraError, - int? fps,
- int? videoBitrate,
- CroppingStrategy? croppingStrategy,
- Offset? focusPoint,
- 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);