# BarcodeScannerConfiguration constructor

BarcodeScannerConfiguration({

1. List<BarcodeDocumentFormat>? acceptedDocumentFormats,
2. Color? cameraOverlayColor,
3. CameraModule? cameraModule,
4. double? cameraZoomFactor,
5. bool? cancelButtonHidden,
6. String? cancelButtonTitle,
7. EngineMode? engineMode,
8. String? enableCameraButtonTitle,
9. String? enableCameraExplanationText,
10. Color? finderLineColor,
11. double? finderLineWidth,
12. String? finderTextHint,
13. Color? finderTextHintColor,
14. AspectRatio? finderAspectRatio,
15. bool? flashButtonHidden,
16. String? flashButtonTitle,
17. Color? flashButtonInactiveColor,
18. bool? flashEnabled,
19. bool? focusLockEnabled,
20. double? focusLockPosition,
21. OrientationLockMode? orientationLockMode,
22. int? minimumTextLength,
23. int? maximumTextLength,
24. bool? minFocusDistanceLock,
25. int? minimum1DBarcodesQuietZone,
26. bool? stripCheckDigits,
27. bool? successBeepEnabled,
28. Color? topBarBackgroundColor,
29. Color? topBarButtonsColor,
30. List<BarcodeFormat>? barcodeFormats,
31. bool? useButtonsAllCaps,
32. bool? replaceCancelButtonWithIcon,
33. CameraPreviewMode? cameraPreviewMode,
34. ZoomRange? cameraZoomRange,
35. int? autoCancelTimeout,
36. Gs1HandlingMode? gs1HandlingMode,
37. MSIPlesseyChecksumAlgorithm? msiPlesseyChecksumAlgorithm,
38. bool? lowPowerMode,
39. BarcodeImageGenerationType? barcodeImageGenerationType,
40. double? initialScanDelay,
41. double? delayAfterScan,
42. bool? doubleTapToZoomEnabled,
43. bool? pinchToZoomEnabled,
44. bool? shouldAnimateZooming,
45. bool? viewFinderEnabled,
46. ConfirmationDialogConfiguration? confirmationDialogConfiguration,
47. SelectionOverlayConfiguration? overlayConfiguration,
48. bool? touchToFocusEnabled,
49. BarcodesExtensionFilter? barcodesExtensionFilter,
50. BarcodeAdditionalParameters? additionalParameters,

})

## Implementation

    BarcodeScannerConfiguration(
        {super.acceptedDocumentFormats,
        super.cameraOverlayColor,
        super.cameraModule,
        super.cameraZoomFactor,
        super.cancelButtonHidden,
        super.cancelButtonTitle,
        super.engineMode,
        super.enableCameraButtonTitle,
        super.enableCameraExplanationText,
        super.finderLineColor,
        super.finderLineWidth,
        super.finderTextHint,
        super.finderTextHintColor,
        super.finderAspectRatio,
        super.flashButtonHidden,
        super.flashButtonTitle,
        super.flashButtonInactiveColor,
        super.flashEnabled,
        super.focusLockEnabled,
        super.focusLockPosition,
        super.orientationLockMode,
        super.minimumTextLength,
        super.maximumTextLength,
        super.minFocusDistanceLock,
        super.minimum1DBarcodesQuietZone,
        super.stripCheckDigits,
        super.successBeepEnabled,
        super.topBarBackgroundColor,
        super.topBarButtonsColor,
        super.barcodeFormats,
        super.useButtonsAllCaps,
        super.replaceCancelButtonWithIcon,
        super.cameraPreviewMode,
        super.cameraZoomRange,
        super.autoCancelTimeout,
        super.gs1HandlingMode,
        super.msiPlesseyChecksumAlgorithm,
        super.lowPowerMode,
        super.barcodeImageGenerationType,
        super.initialScanDelay,
        super.delayAfterScan,
        super.doubleTapToZoomEnabled,
        super.pinchToZoomEnabled,
        super.shouldAnimateZooming,
        super.viewFinderEnabled,
        super.confirmationDialogConfiguration,
        super.overlayConfiguration,
        super.touchToFocusEnabled,
        super.barcodesExtensionFilter,
        this.additionalParameters}) {
      if (additionalParameters != null) {
        minimumTextLength =
            minimumTextLength ?? additionalParameters?.minimumTextLength;
        maximumTextLength =
            maximumTextLength ?? additionalParameters?.maximumTextLength;
        minimum1DBarcodesQuietZone = minimum1DBarcodesQuietZone ??
            additionalParameters?.minimum1DBarcodesQuietZone;
        gs1HandlingMode =
            gs1HandlingMode ?? additionalParameters?.gs1HandlingMode;
        msiPlesseyChecksumAlgorithm = msiPlesseyChecksumAlgorithm ??
            additionalParameters?.msiPlesseyChecksumAlgorithm;
        stripCheckDigits =
            stripCheckDigits ?? additionalParameters?.stripCheckDigits;
      }
    }