copyWith method

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