copyWith method
GetMessageAddedReactions
copyWith({
- int? chatId,
- int? messageId,
- ReactionType? reactionType()?,
- String? offset,
- int? limit,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
GetMessageAddedReactions copyWith({
int? chatId,
int? messageId,
ReactionType? Function()? reactionType,
String? offset,
int? limit,
}) =>
GetMessageAddedReactions(
chatId: chatId ?? this.chatId,
messageId: messageId ?? this.messageId,
reactionType: reactionType != null ? reactionType() : this.reactionType,
offset: offset ?? this.offset,
limit: limit ?? this.limit,
);