copyWith method
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,
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,
);
}