copyWith method
InputInlineQueryResultSticker
copyWith({
- String? id,
- String? thumbnailUrl,
- String? stickerUrl,
- int? stickerWidth,
- int? stickerHeight,
- ReplyMarkup? replyMarkup()?,
- InputMessageContent? inputMessageContent,
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
InputInlineQueryResultSticker copyWith({
String? id,
String? thumbnailUrl,
String? stickerUrl,
int? stickerWidth,
int? stickerHeight,
ReplyMarkup? Function()? replyMarkup,
InputMessageContent? inputMessageContent,
}) =>
InputInlineQueryResultSticker(
id: id ?? this.id,
thumbnailUrl: thumbnailUrl ?? this.thumbnailUrl,
stickerUrl: stickerUrl ?? this.stickerUrl,
stickerWidth: stickerWidth ?? this.stickerWidth,
stickerHeight: stickerHeight ?? this.stickerHeight,
replyMarkup: replyMarkup != null ? replyMarkup() : this.replyMarkup,
inputMessageContent: inputMessageContent ?? this.inputMessageContent,
);