copyWith method

ScanResult copyWith({
  1. RoomData? room,
  2. ScanMetadata? metadata,
  3. ScanConfidence? confidence,
})

Creates a copy of this scan result with modified values.

Implementation

ScanResult copyWith({
  RoomData? room,
  ScanMetadata? metadata,
  ScanConfidence? confidence,
}) {
  return ScanResult(
    room: room ?? this.room,
    metadata: metadata ?? this.metadata,
    confidence: confidence ?? this.confidence,
  );
}