copyWith method
UpdateMessageReactions
copyWith({
- int? chatId,
- int? messageId,
- int? date,
- List<
MessageReaction> ? reactions, - dynamic extra,
- 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,
);