copyWith method
MessageInvoice
copyWith({
- String? title,
- String? description,
- Photo? photo,
- String? currency,
- int? totalAmount,
- String? startParameter,
- bool? isTest,
- bool? needShippingAddress,
- int? receiptMessageId,
override
Implementation
@override
MessageInvoice copyWith({
String? title,
String? description,
Photo? photo,
String? currency,
int? totalAmount,
String? startParameter,
bool? isTest,
bool? needShippingAddress,
int? receiptMessageId,
}) => MessageInvoice(
title: title ?? this.title,
description: description ?? this.description,
photo: photo ?? this.photo,
currency: currency ?? this.currency,
totalAmount: totalAmount ?? this.totalAmount,
startParameter: startParameter ?? this.startParameter,
isTest: isTest ?? this.isTest,
needShippingAddress: needShippingAddress ?? this.needShippingAddress,
receiptMessageId: receiptMessageId ?? this.receiptMessageId,
);