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