BatchBarcodeScannerConfiguration constructor

BatchBarcodeScannerConfiguration({
  1. List<BarcodeDocumentFormat>? acceptedDocumentFormats,
  2. Color? cameraOverlayColor,
  3. CameraModule? cameraModule,
  4. double? cameraZoomFactor,
  5. ZoomRange? cameraZoomRange,
  6. bool? cancelButtonHidden,
  7. String? cancelButtonTitle,
  8. bool? doubleTapToZoomEnabled,
  9. bool? pinchToZoomEnabled,
  10. bool? shouldAnimateZooming,
  11. EngineMode? engineMode,
  12. Color? finderLineColor,
  13. double? finderLineWidth,
  14. String? finderTextHint,
  15. Color? finderTextHintColor,
  16. AspectRatio? finderAspectRatio,
  17. bool? flashButtonHidden,
  18. String? flashButtonTitle,
  19. bool? flashEnabled,
  20. bool? focusLockEnabled,
  21. double? focusLockPosition,
  22. OrientationLockMode? orientationLockMode,
  23. int? minimumTextLength,
  24. int? maximumTextLength,
  25. int? minimum1DBarcodesQuietZone,
  26. bool? minFocusDistanceLock,
  27. bool? stripCheckDigits,
  28. bool? successBeepEnabled,
  29. Color? topBarBackgroundColor,
  30. Color? topBarButtonsColor,
  31. Color? topBarButtonsInactiveColor,
  32. List<BarcodeFormat>? barcodeFormats,
  33. bool? useButtonsAllCaps,
  34. Gs1HandlingMode? gs1HandlingMode,
  35. MSIPlesseyChecksumAlgorithm? msiPlesseyChecksumAlgorithm,
  36. bool? lowPowerMode,
  37. String? barcodesCountText,
  38. Color? barcodesCountTextColor,
  39. String? clearButtonTitle,
  40. Color? detailsActionColor,
  41. Color? detailsBackgroundColor,
  42. Color? detailsPrimaryColor,
  43. String? deleteButtonTitle,
  44. String? enableCameraButtonTitle,
  45. String? enableCameraExplanationText,
  46. String? fetchingStateText,
  47. String? noBarcodesTitle,
  48. String? submitButtonTitle,
  49. CodeDensity? codeDensity,
  50. bool? replaceCancelButtonWithIcon,
  51. CameraPreviewMode? cameraPreviewMode,
  52. int? autoCancelTimeout,
  53. double? initialScanDelay,
  54. bool? viewFinderEnabled,
  55. SelectionOverlayConfiguration? overlayConfiguration,
  56. bool? touchToFocusEnabled,
  57. BarcodesExtensionFilter? barcodesExtensionFilter,
  58. BarcodeAdditionalParameters? additionalParameters,
  59. BarcodeDataFormatter? barcodeFormatter,
})

Implementation

BatchBarcodeScannerConfiguration(
    {super.acceptedDocumentFormats,
    super.cameraOverlayColor,
    super.cameraModule,
    super.cameraZoomFactor,
    super.cameraZoomRange,
    super.cancelButtonHidden,
    super.cancelButtonTitle,
    super.doubleTapToZoomEnabled,
    super.pinchToZoomEnabled,
    super.shouldAnimateZooming,
    super.engineMode,
    super.finderLineColor,
    super.finderLineWidth,
    super.finderTextHint,
    super.finderTextHintColor,
    super.finderAspectRatio,
    super.flashButtonHidden,
    super.flashButtonTitle,
    super.flashEnabled,
    super.focusLockEnabled,
    super.focusLockPosition,
    super.orientationLockMode,
    super.minimumTextLength,
    super.maximumTextLength,
    super.minimum1DBarcodesQuietZone,
    super.minFocusDistanceLock,
    super.stripCheckDigits,
    super.successBeepEnabled,
    super.topBarBackgroundColor,
    super.topBarButtonsColor,
    super.topBarButtonsInactiveColor,
    super.barcodeFormats,
    super.useButtonsAllCaps,
    super.gs1HandlingMode,
    super.msiPlesseyChecksumAlgorithm,
    super.lowPowerMode,
    super.barcodesCountText,
    super.barcodesCountTextColor,
    super.clearButtonTitle,
    super.detailsActionColor,
    super.detailsBackgroundColor,
    super.detailsPrimaryColor,
    super.deleteButtonTitle,
    super.enableCameraButtonTitle,
    super.enableCameraExplanationText,
    super.fetchingStateText,
    super.noBarcodesTitle,
    super.submitButtonTitle,
    super.codeDensity,
    super.replaceCancelButtonWithIcon,
    super.cameraPreviewMode,
    super.autoCancelTimeout,
    super.initialScanDelay,
    super.viewFinderEnabled,
    super.overlayConfiguration,
    super.touchToFocusEnabled,
    super.barcodesExtensionFilter,
    this.additionalParameters,
    this.barcodeFormatter}) {
  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;
  }
}