copyWith method

  1. @override
InputMessageReplyToExternalMessage copyWith({
  1. int? chatId,
  2. int? messageId,
  3. InputTextQuote? quote()?,
  4. int? checklistTaskId,
  5. String? pollOptionId,
})
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
InputMessageReplyToExternalMessage copyWith({
  int? chatId,
  int? messageId,
  InputTextQuote? Function()? quote,
  int? checklistTaskId,
  String? pollOptionId,
}) => InputMessageReplyToExternalMessage(
  chatId: chatId ?? this.chatId,
  messageId: messageId ?? this.messageId,
  quote: quote != null ? quote() : this.quote,
  checklistTaskId: checklistTaskId ?? this.checklistTaskId,
  pollOptionId: pollOptionId ?? this.pollOptionId,
);