# DocumentScannerCameraConfiguration constructor

DocumentScannerCameraConfiguration({

1. CameraModule cameraModule = CameraModule.BACK,
2. double defaultZoomFactor = 1.0,
3. bool flashEnabled = false,
4. bool minFocusDistanceLock = false,
5. bool touchToFocusEnabled = false,
6. bool pinchToZoomEnabled = true,
7. CameraPreviewMode cameraPreviewMode = CameraPreviewMode.FILL_IN,
8. CapturePhotoQualityPrioritization captureQualityPrioritization = CapturePhotoQualityPrioritization.BALANCED,
9. double acceptedAngleScore = 0.75,
10. double acceptedSizeScore = 0.75,
11. double autoSnappingSensitivity = 0.66,
12. int autoSnappingDelay = 200,
13. int acceptedBrightnessThreshold = 50,
14. bool autoSnappingEnabled = true,
15. List<AspectRatio>? requiredAspectRatios,
16. bool ignoreBadAspectRatio = true,
17. bool captureWithHardwareButtonsEnabled = true,

})

## Implementation

    DocumentScannerCameraConfiguration({
      this.cameraModule = CameraModule.BACK,
      this.defaultZoomFactor = 1.0,
      this.flashEnabled = false,
      this.minFocusDistanceLock = false,
      this.touchToFocusEnabled = false,
      this.pinchToZoomEnabled = true,
      this.cameraPreviewMode = CameraPreviewMode.FILL_IN,
      this.captureQualityPrioritization =
          CapturePhotoQualityPrioritization.BALANCED,
      this.acceptedAngleScore = 0.75,
      this.acceptedSizeScore = 0.75,
      this.autoSnappingSensitivity = 0.66,
      this.autoSnappingDelay = 200,
      this.acceptedBrightnessThreshold = 50,
      this.autoSnappingEnabled = true,
      List<AspectRatio>? requiredAspectRatios,
      this.ignoreBadAspectRatio = true,
      this.captureWithHardwareButtonsEnabled = true,
    }) : requiredAspectRatios = requiredAspectRatios ?? [];