copyWith method

SingleConversationData copyWith({
  1. GetAllConversationsData? conversation,
  2. List<ConversationMessage>? messages,
})

Implementation

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