copyWith method
Copy model with modified properties.
Properties:
chat_id: Chat identifierlast_read_inbox_message_id: Identifier of the last read incoming messageunread_count: The number of unread messages left in the chat
Implementation
@override
UpdateChatReadInbox copyWith({
int? chatId,
int? lastReadInboxMessageId,
int? unreadCount,
dynamic extra,
int? clientId,
}) =>
UpdateChatReadInbox(
chatId: chatId ?? this.chatId,
lastReadInboxMessageId:
lastReadInboxMessageId ?? this.lastReadInboxMessageId,
unreadCount: unreadCount ?? this.unreadCount,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);