copyWith method

PreparedInlineMessage copyWith({
  1. int? inlineQueryId,
  2. InlineQueryResult? result,
  3. TargetChatTypes? chatTypes,
  4. dynamic extra,
  5. 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,
);