copyWith method
Creates a copy with replaced values.
Implementation
ReasoningSummaryTextDoneEvent copyWith({
int? outputIndex,
int? summaryIndex,
String? text,
Object? itemId = unsetCopyWithValue,
Object? sequenceNumber = unsetCopyWithValue,
}) {
return ReasoningSummaryTextDoneEvent(
outputIndex: outputIndex ?? this.outputIndex,
summaryIndex: summaryIndex ?? this.summaryIndex,
text: text ?? this.text,
itemId: itemId == unsetCopyWithValue ? this.itemId : itemId as String?,
sequenceNumber: sequenceNumber == unsetCopyWithValue
? this.sequenceNumber
: sequenceNumber as int?,
);
}