copyWith method

UpdateChatAction copyWith({
  1. int? chatId,
  2. MessageTopic? topicId,
  3. MessageSender? senderId,
  4. ChatAction? action,
})

Implementation

UpdateChatAction copyWith({
  int? chatId,
  MessageTopic? topicId,
  MessageSender? senderId,
  ChatAction? action,
}) =>
    UpdateChatAction(
      chatId: chatId ?? this.chatId,
      topicId: topicId ?? this.topicId,
      senderId: senderId ?? this.senderId,
      action: action ?? this.action,
    );