copyWith method
PreparedInlineMessage
copyWith({
- int? inlineQueryId,
- InlineQueryResult? result,
- TargetChatTypes? chatTypes,
- dynamic extra,
- int? clientId,
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
PreparedInlineMessage copyWith({
int? inlineQueryId,
InlineQueryResult? result,
TargetChatTypes? chatTypes,
dynamic extra,
int? clientId,
}) => PreparedInlineMessage(
inlineQueryId: inlineQueryId ?? this.inlineQueryId,
result: result ?? this.result,
chatTypes: chatTypes ?? this.chatTypes,
extra: extra ?? this.extra,
clientId: clientId ?? this.clientId,
);