copyWith method

ScannerOptions copyWith({
  1. ScanStrategy? scanStrategy,
  2. ScanWindow? scanWindow,
  3. int? frameThrottleMs,
  4. int? targetFrameRate,
  5. bool? enableAdaptiveFps,
  6. bool? enableAdaptiveFrameSkipping,
  7. bool? enablePauseOnStaticFrame,
  8. bool? enableProgressiveResolution,
  9. Duration? duplicateTimeout,
  10. bool? enableDuplicateFilter,
  11. bool? enableDetectionCache,
  12. Duration? detectionCacheTimeout,
  13. int? frameQueueCapacity,
  14. bool? enableIsolateProcessing,
  15. bool? enableImageEnhancement,
  16. bool? enableBlurDetection,
  17. bool? enableAutoBrightnessCheck,
  18. bool? autoTorchInLowLight,
  19. double? lowLightThreshold,
  20. bool? enableAutoZoom,
  21. bool? autoResetZoomAfterScan,
  22. double? autoZoomThreshold,
  23. bool? continuousAutofocus,
  24. bool? enableMultiCodeDetection,
  25. int? maxMultiCodeCount,
  26. bool? enableScanHistory,
  27. int? maxHistorySize,
  28. int? maxBatchCount,
  29. double? minConfidence,
  30. Rect? rectScanArea,
  31. List<String>? allowedFormats,
  32. bool? enableSound,
  33. bool? enableVibration,
  34. double? torchLevel,
  35. bool? isFocusLocked,
  36. bool? enableAutoCapture,
  37. double? autoCaptureQualityThreshold,
  38. int? autoCaptureSteadyFrames,
  39. bool? enableMultiFrameConsensus,
  40. int? consensusFrameCount,
  41. double? consensusAccuracyThreshold,
  42. bool? enableAdaptiveRoi,
  43. bool? enableEncryptedStorage,
  44. String? encryptionPassword,
  45. bool? enableCloudSync,
  46. String? cloudSyncEndpoint,
  47. bool? enableWatermark,
  48. String? watermarkText,
  49. double? imageCompressionQuality,
  50. String? exportFormat,
})

Implementation

ScannerOptions copyWith({
  ScanStrategy? scanStrategy,
  ScanWindow? scanWindow,
  int? frameThrottleMs,
  int? targetFrameRate,
  bool? enableAdaptiveFps,
  bool? enableAdaptiveFrameSkipping,
  bool? enablePauseOnStaticFrame,
  bool? enableProgressiveResolution,
  Duration? duplicateTimeout,
  bool? enableDuplicateFilter,
  bool? enableDetectionCache,
  Duration? detectionCacheTimeout,
  int? frameQueueCapacity,
  bool? enableIsolateProcessing,
  bool? enableImageEnhancement,
  bool? enableBlurDetection,
  bool? enableAutoBrightnessCheck,
  bool? autoTorchInLowLight,
  double? lowLightThreshold,
  bool? enableAutoZoom,
  bool? autoResetZoomAfterScan,
  double? autoZoomThreshold,
  bool? continuousAutofocus,
  bool? enableMultiCodeDetection,
  int? maxMultiCodeCount,
  bool? enableScanHistory,
  int? maxHistorySize,
  int? maxBatchCount,
  double? minConfidence,
  Rect? rectScanArea,
  List<String>? allowedFormats,
  bool? enableSound,
  bool? enableVibration,
  double? torchLevel,
  bool? isFocusLocked,
  bool? enableAutoCapture,
  double? autoCaptureQualityThreshold,
  int? autoCaptureSteadyFrames,
  bool? enableMultiFrameConsensus,
  int? consensusFrameCount,
  double? consensusAccuracyThreshold,
  bool? enableAdaptiveRoi,
  bool? enableEncryptedStorage,
  String? encryptionPassword,
  bool? enableCloudSync,
  String? cloudSyncEndpoint,
  bool? enableWatermark,
  String? watermarkText,
  double? imageCompressionQuality,
  String? exportFormat,
}) {
  return ScannerOptions(
    scanStrategy: scanStrategy ?? this.scanStrategy,
    scanWindow: scanWindow ?? this.scanWindow,
    frameThrottleMs: frameThrottleMs ?? this.frameThrottleMs,
    targetFrameRate: targetFrameRate ?? this.targetFrameRate,
    enableAdaptiveFps: enableAdaptiveFps ?? this.enableAdaptiveFps,
    enableAdaptiveFrameSkipping:
        enableAdaptiveFrameSkipping ?? this.enableAdaptiveFrameSkipping,
    enablePauseOnStaticFrame:
        enablePauseOnStaticFrame ?? this.enablePauseOnStaticFrame,
    enableProgressiveResolution:
        enableProgressiveResolution ?? this.enableProgressiveResolution,
    duplicateTimeout: duplicateTimeout ?? this.duplicateTimeout,
    enableDuplicateFilter:
        enableDuplicateFilter ?? this.enableDuplicateFilter,
    enableDetectionCache: enableDetectionCache ?? this.enableDetectionCache,
    detectionCacheTimeout:
        detectionCacheTimeout ?? this.detectionCacheTimeout,
    frameQueueCapacity: frameQueueCapacity ?? this.frameQueueCapacity,
    enableIsolateProcessing:
        enableIsolateProcessing ?? this.enableIsolateProcessing,
    enableImageEnhancement:
        enableImageEnhancement ?? this.enableImageEnhancement,
    enableBlurDetection: enableBlurDetection ?? this.enableBlurDetection,
    enableAutoBrightnessCheck:
        enableAutoBrightnessCheck ?? this.enableAutoBrightnessCheck,
    autoTorchInLowLight: autoTorchInLowLight ?? this.autoTorchInLowLight,
    lowLightThreshold: lowLightThreshold ?? this.lowLightThreshold,
    enableAutoZoom: enableAutoZoom ?? this.enableAutoZoom,
    autoResetZoomAfterScan:
        autoResetZoomAfterScan ?? this.autoResetZoomAfterScan,
    autoZoomThreshold: autoZoomThreshold ?? this.autoZoomThreshold,
    continuousAutofocus: continuousAutofocus ?? this.continuousAutofocus,
    enableMultiCodeDetection:
        enableMultiCodeDetection ?? this.enableMultiCodeDetection,
    maxMultiCodeCount: maxMultiCodeCount ?? this.maxMultiCodeCount,
    enableScanHistory: enableScanHistory ?? this.enableScanHistory,
    maxHistorySize: maxHistorySize ?? this.maxHistorySize,
    maxBatchCount: maxBatchCount ?? this.maxBatchCount,
    minConfidence: minConfidence ?? this.minConfidence,
    rectScanArea: rectScanArea ?? this.rectScanArea,
    allowedFormats: allowedFormats ?? this.allowedFormats,
    enableSound: enableSound ?? this.enableSound,
    enableVibration: enableVibration ?? this.enableVibration,
    torchLevel: torchLevel ?? this.torchLevel,
    isFocusLocked: isFocusLocked ?? this.isFocusLocked,
    enableAutoCapture: enableAutoCapture ?? this.enableAutoCapture,
    autoCaptureQualityThreshold:
        autoCaptureQualityThreshold ?? this.autoCaptureQualityThreshold,
    autoCaptureSteadyFrames:
        autoCaptureSteadyFrames ?? this.autoCaptureSteadyFrames,
    enableMultiFrameConsensus:
        enableMultiFrameConsensus ?? this.enableMultiFrameConsensus,
    consensusFrameCount: consensusFrameCount ?? this.consensusFrameCount,
    consensusAccuracyThreshold:
        consensusAccuracyThreshold ?? this.consensusAccuracyThreshold,
    enableAdaptiveRoi: enableAdaptiveRoi ?? this.enableAdaptiveRoi,
    enableEncryptedStorage:
        enableEncryptedStorage ?? this.enableEncryptedStorage,
    encryptionPassword: encryptionPassword ?? this.encryptionPassword,
    enableCloudSync: enableCloudSync ?? this.enableCloudSync,
    cloudSyncEndpoint: cloudSyncEndpoint ?? this.cloudSyncEndpoint,
    enableWatermark: enableWatermark ?? this.enableWatermark,
    watermarkText: watermarkText ?? this.watermarkText,
    imageCompressionQuality:
        imageCompressionQuality ?? this.imageCompressionQuality,
    exportFormat: exportFormat ?? this.exportFormat,
  );
}