copyWith method

UpdateMessageReaction copyWith({
  1. int? chatId,
  2. int? messageId,
  3. MessageSender? actorId,
  4. int? date,
  5. List<ReactionType>? oldReactionTypes,
  6. List<ReactionType>? newReactionTypes,
})

Implementation

UpdateMessageReaction copyWith({
  int? chatId,
  int? messageId,
  MessageSender? actorId,
  int? date,
  List<ReactionType>? oldReactionTypes,
  List<ReactionType>? newReactionTypes,
}) =>
    UpdateMessageReaction(
      chatId: chatId ?? this.chatId,
      messageId: messageId ?? this.messageId,
      actorId: actorId ?? this.actorId,
      date: date ?? this.date,
      oldReactionTypes: oldReactionTypes ?? this.oldReactionTypes,
      newReactionTypes: newReactionTypes ?? this.newReactionTypes,
    );