copyWith method

ScanConfiguration copyWith({
  1. ScanQuality? quality,
  2. int? timeoutSeconds,
  3. bool? enableRealtimeUpdates,
  4. bool? detectFurniture,
  5. bool? detectDoors,
  6. bool? detectWindows,
  7. double? minimumConfidence,
  8. bool? enableAdvancedSurfaceDetection,
})

Creates a copy of this configuration with modified values.

Implementation

ScanConfiguration copyWith({
  ScanQuality? quality,
  int? timeoutSeconds,
  bool? enableRealtimeUpdates,
  bool? detectFurniture,
  bool? detectDoors,
  bool? detectWindows,
  double? minimumConfidence,
  bool? enableAdvancedSurfaceDetection,
}) {
  return ScanConfiguration(
    quality: quality ?? this.quality,
    timeoutSeconds: timeoutSeconds ?? this.timeoutSeconds,
    enableRealtimeUpdates: enableRealtimeUpdates ?? this.enableRealtimeUpdates,
    detectFurniture: detectFurniture ?? this.detectFurniture,
    detectDoors: detectDoors ?? this.detectDoors,
    detectWindows: detectWindows ?? this.detectWindows,
    minimumConfidence: minimumConfidence ?? this.minimumConfidence,
    enableAdvancedSurfaceDetection: enableAdvancedSurfaceDetection ?? this.enableAdvancedSurfaceDetection,
  );
}