copyWith method
Implementation
Message copyWith({
String? text,
bool? isUser,
Uint8List? imageBytes,
Uint8List? audioBytes,
MessageType? type,
String? toolName,
}) {
return Message(
text: text ?? this.text,
isUser: isUser ?? this.isUser,
imageBytes: imageBytes ?? this.imageBytes,
audioBytes: audioBytes ?? this.audioBytes,
type: type ?? this.type,
toolName: toolName ?? this.toolName,
);
}