copyWith method
SingleConversationData
copyWith({
- GetAllConversationsData? conversation,
- List<
ConversationMessage> ? messages,
Implementation
SingleConversationData copyWith({
GetAllConversationsData? conversation,
List<ConversationMessage>? messages,
}) {
return SingleConversationData(
conversation: conversation ?? this.conversation,
messages: messages ?? this.messages,
);
}