copyWith method

  1. @override
UpdateMessageReaction copyWith({
  1. int? chatId,
  2. int? messageId,
  3. MessageSender? actorId,
  4. int? date,
  5. List<ReactionType>? oldReactionTypes,
  6. List<ReactionType>? newReactionTypes,
  7. dynamic extra,
  8. int? clientId,
})
override

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

@override
UpdateMessageReaction copyWith({
  int? chatId,
  int? messageId,
  MessageSender? actorId,
  int? date,
  List<ReactionType>? oldReactionTypes,
  List<ReactionType>? newReactionTypes,
  dynamic extra,
  int? clientId,
}) =>
    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,
      extra: extra ?? this.extra,
      clientId: clientId ?? this.clientId,
    );