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