copyWith method

UpdateNewWidgetCopyQuery copyWith({
  1. int? id,
  2. int? senderUserId,
  3. WidgetQueryType? queryType,
  4. String? data,
  5. int? widgetId,
  6. TonWalletCard? walletCard,
})

Implementation

UpdateNewWidgetCopyQuery copyWith({
  int? id,
  int? senderUserId,
  WidgetQueryType? queryType,
  String? data,
  int? widgetId,
  TonWalletCard? walletCard,
}) =>
    UpdateNewWidgetCopyQuery(
      id: id ?? this.id,
      senderUserId: senderUserId ?? this.senderUserId,
      queryType: queryType ?? this.queryType,
      data: data ?? this.data,
      widgetId: widgetId ?? this.widgetId,
      walletCard: walletCard ?? this.walletCard,
    );