copyWith method

GetMessageAddedReactions copyWith({
  1. int? chatId,
  2. int? messageId,
  3. ReactionType? reactionType()?,
  4. String? offset,
  5. 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,
);