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. CodeDensity? codeDensity,
  40. BarcodeImageGenerationType? barcodeImageGenerationType,
  41. double? initialScanDelay,
  42. double? delayAfterScan,
  43. bool? doubleTapToZoomEnabled,
  44. bool? pinchToZoomEnabled,
  45. bool? shouldAnimateZooming,
  46. bool? viewFinderEnabled,
  47. ConfirmationDialogConfiguration? confirmationDialogConfiguration,
  48. SelectionOverlayConfiguration? overlayConfiguration,
  49. bool? touchToFocusEnabled,
  50. BarcodesExtensionFilter? barcodesExtensionFilter,
  51. 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.codeDensity,
    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;
    codeDensity = codeDensity ?? additionalParameters?.codeDensity;
  }
}