copyWith method
InlineQueryResultArticle
copyWith({
- String? id,
- String? url,
- bool? hideUrl,
- String? title,
- String? description,
- Thumbnail? thumbnail()?,
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
InlineQueryResultArticle copyWith({
String? id,
String? url,
bool? hideUrl,
String? title,
String? description,
Thumbnail? Function()? thumbnail,
}) =>
InlineQueryResultArticle(
id: id ?? this.id,
url: url ?? this.url,
hideUrl: hideUrl ?? this.hideUrl,
title: title ?? this.title,
description: description ?? this.description,
thumbnail: thumbnail != null ? thumbnail() : this.thumbnail,
);