copyWith method

PaymentReceipt copyWith({
  1. ProductInfo? productInfo,
  2. int? date,
  3. int? sellerBotUserId,
  4. PaymentReceiptType? type,
  5. dynamic extra,
  6. int? clientId,
})

Returns a copy with the given fields replaced. For a nullable field pass a function, e.g. field: () => null to clear it.

Implementation

PaymentReceipt copyWith({
  ProductInfo? productInfo,
  int? date,
  int? sellerBotUserId,
  PaymentReceiptType? type,
  dynamic extra,
  int? clientId,
}) => PaymentReceipt(
  productInfo: productInfo ?? this.productInfo,
  date: date ?? this.date,
  sellerBotUserId: sellerBotUserId ?? this.sellerBotUserId,
  type: type ?? this.type,
  extra: extra ?? this.extra,
  clientId: clientId ?? this.clientId,
);