copyWith method

InlineQueryResultArticle copyWith({
  1. String? title,
  2. InputMessageContent? inputMessageContent,
  3. InlineKeyboardMarkup? replyMarkup,
  4. String? url,
  5. bool? hideUrl,
  6. String? description,
  7. String? thumbnailUrl,
  8. int? thumbnailWidth,
  9. int? thumbnailHeight,
  10. String? id,
})

Copy method

Implementation

InlineQueryResultArticle copyWith({
  String? title,
  InputMessageContent? inputMessageContent,
  InlineKeyboardMarkup? replyMarkup,
  String? url,
  bool? hideUrl,
  String? description,
  String? thumbnailUrl,
  int? thumbnailWidth,
  int? thumbnailHeight,
  String? id,
}) {
  return InlineQueryResultArticle(
    title: title ?? this.title,
    inputMessageContent: inputMessageContent ?? this.inputMessageContent,
    replyMarkup: replyMarkup ?? this.replyMarkup,
    url: url ?? this.url,
    hideUrl: hideUrl ?? this.hideUrl,
    description: description ?? this.description,
    thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
    thumbnailWidth: thumbnailWidth ?? this.thumbnailWidth,
    thumbnailHeight: thumbnailHeight ?? this.thumbnailHeight,
    id: id ?? this.id,
  );
}