copyWith method

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