copyWith method

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