copyWith method

  1. @override
InputInlineQueryResultGame copyWith({
  1. String? id,
  2. String? gameShortName,
  3. 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,
    );