copyWith method

MessageThreadInfo copyWith({
  1. int? chatId,
  2. int? messageThreadId,
  3. MessageReplyInfo? replyInfo,
  4. int? unreadMessageCount,
  5. List<Message>? messages,
  6. DraftMessage? draftMessage,
  7. dynamic extra,
  8. int? clientId,
})

Implementation

MessageThreadInfo copyWith({
  int? chatId,
  int? messageThreadId,
  MessageReplyInfo? replyInfo,
  int? unreadMessageCount,
  List<Message>? messages,
  DraftMessage? draftMessage,
  dynamic extra,
  int? clientId,
}) => MessageThreadInfo(
  chatId: chatId ?? this.chatId,
  messageThreadId: messageThreadId ?? this.messageThreadId,
  replyInfo: replyInfo ?? this.replyInfo,
  unreadMessageCount: unreadMessageCount ?? this.unreadMessageCount,
  messages: messages ?? this.messages,
  draftMessage: draftMessage ?? this.draftMessage,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);