copyWith method
MessageInvoice
copyWith({
- ProductInfo? productInfo,
- String? currency,
- int? totalAmount,
- String? startParameter,
- bool? isTest,
- bool? needShippingAddress,
- int? receiptMessageId,
- PaidMedia? paidMedia,
- FormattedText? paidMediaCaption,
Implementation
MessageInvoice copyWith({
ProductInfo? productInfo,
String? currency,
int? totalAmount,
String? startParameter,
bool? isTest,
bool? needShippingAddress,
int? receiptMessageId,
PaidMedia? paidMedia,
FormattedText? paidMediaCaption,
}) => MessageInvoice(
productInfo: productInfo ?? this.productInfo,
currency: currency ?? this.currency,
totalAmount: totalAmount ?? this.totalAmount,
startParameter: startParameter ?? this.startParameter,
isTest: isTest ?? this.isTest,
needShippingAddress: needShippingAddress ?? this.needShippingAddress,
receiptMessageId: receiptMessageId ?? this.receiptMessageId,
paidMedia: paidMedia ?? this.paidMedia,
paidMediaCaption: paidMediaCaption ?? this.paidMediaCaption,
);