copyWith method

  1. @override
UpdateNewInlineWidgetQuery copyWith({
  1. int? id,
  2. int? senderUserId,
  3. String? inlineMessageId,
  4. int? chatInstance,
  5. String? chatType,
  6. WidgetQueryType? queryType,
  7. String? data,
  8. int? widgetId,
  9. TonWalletCard? walletCard()?,
  10. dynamic extra,
  11. int? clientId,
})
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
UpdateNewInlineWidgetQuery copyWith({
  int? id,
  int? senderUserId,
  String? inlineMessageId,
  int? chatInstance,
  String? chatType,
  WidgetQueryType? queryType,
  String? data,
  int? widgetId,
  TonWalletCard? Function()? walletCard,
  dynamic extra,
  int? clientId,
}) => UpdateNewInlineWidgetQuery(
  id: id ?? this.id,
  senderUserId: senderUserId ?? this.senderUserId,
  inlineMessageId: inlineMessageId ?? this.inlineMessageId,
  chatInstance: chatInstance ?? this.chatInstance,
  chatType: chatType ?? this.chatType,
  queryType: queryType ?? this.queryType,
  data: data ?? this.data,
  widgetId: widgetId ?? this.widgetId,
  walletCard: walletCard != null ? walletCard() : this.walletCard,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);