copyWith method

  1. @override
UpdateMessageReactions copyWith({
  1. int? chatId,
  2. int? messageId,
  3. int? date,
  4. List<MessageReaction>? reactions,
  5. dynamic extra,
  6. 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
UpdateMessageReactions copyWith({
  int? chatId,
  int? messageId,
  int? date,
  List<MessageReaction>? reactions,
  dynamic extra,
  int? clientId,
}) => UpdateMessageReactions(
  chatId: chatId ?? this.chatId,
  messageId: messageId ?? this.messageId,
  date: date ?? this.date,
  reactions: reactions ?? this.reactions,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);