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