copyWith method
InputInlineQueryResultGame
copyWith({
- String? id,
- String? gameShortName,
- ReplyMarkup? replyMarkup()?,
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
InputInlineQueryResultGame copyWith({
String? id,
String? gameShortName,
ReplyMarkup? Function()? replyMarkup,
}) =>
InputInlineQueryResultGame(
id: id ?? this.id,
gameShortName: gameShortName ?? this.gameShortName,
replyMarkup: replyMarkup != null ? replyMarkup() : this.replyMarkup,
);