copyWith method

UpdateNewPreCheckoutQuery copyWith({
  1. int? id,
  2. int? senderUserId,
  3. String? currency,
  4. int? totalAmount,
  5. String? invoicePayload,
  6. String? shippingOptionId,
  7. OrderInfo? orderInfo,
})

Implementation

UpdateNewPreCheckoutQuery copyWith({
  int? id,
  int? senderUserId,
  String? currency,
  int? totalAmount,
  String? invoicePayload,
  String? shippingOptionId,
  OrderInfo? orderInfo,
}) =>
    UpdateNewPreCheckoutQuery(
      id: id ?? this.id,
      senderUserId: senderUserId ?? this.senderUserId,
      currency: currency ?? this.currency,
      totalAmount: totalAmount ?? this.totalAmount,
      invoicePayload: invoicePayload ?? this.invoicePayload,
      shippingOptionId: shippingOptionId ?? this.shippingOptionId,
      orderInfo: orderInfo ?? this.orderInfo,
    );