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
InlineQueryResultPhoto copyWith({
String? id,
Photo? photo,
String? title,
String? description,
}) =>
InlineQueryResultPhoto(
id: id ?? this.id,
photo: photo ?? this.photo,
title: title ?? this.title,
description: description ?? this.description,
);