copyWith method
MessageInvoice
copyWith({
- String? title,
- FormattedText? description,
- Photo? photo,
- String? currency,
- int? totalAmount,
- String? startParameter,
- bool? isTest,
- bool? needShippingAddress,
- int? receiptMessageId,
- MessageExtendedMedia? extendedMedia,
override
Implementation
@override
MessageInvoice copyWith({
String? title,
FormattedText? description,
Photo? photo,
String? currency,
int? totalAmount,
String? startParameter,
bool? isTest,
bool? needShippingAddress,
int? receiptMessageId,
MessageExtendedMedia? extendedMedia,
}) =>
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,
extendedMedia: extendedMedia ?? this.extendedMedia,
);