copyWith method
PaymentReceipt
copyWith({
- ProductInfo? productInfo,
- int? date,
- int? sellerBotUserId,
- PaymentReceiptType? type,
- dynamic extra,
- 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,
);