copyWith method
Invoice
copyWith(
{ - String? currency,
- List<LabeledPricePart>? priceParts,
- int? maxTipAmount,
- List<int>? suggestedTipAmounts,
- bool? isTest,
- bool? needName,
- bool? needPhoneNumber,
- bool? needEmailAddress,
- bool? needShippingAddress,
- bool? sendPhoneNumberToProvider,
- bool? sendEmailAddressToProvider,
- bool? isFlexible,
})
Implementation
Invoice copyWith({
String? currency,
List<LabeledPricePart>? priceParts,
int? maxTipAmount,
List<int>? suggestedTipAmounts,
bool? isTest,
bool? needName,
bool? needPhoneNumber,
bool? needEmailAddress,
bool? needShippingAddress,
bool? sendPhoneNumberToProvider,
bool? sendEmailAddressToProvider,
bool? isFlexible,
}) => Invoice(
currency: currency ?? this.currency,
priceParts: priceParts ?? this.priceParts,
maxTipAmount: maxTipAmount ?? this.maxTipAmount,
suggestedTipAmounts: suggestedTipAmounts ?? this.suggestedTipAmounts,
isTest: isTest ?? this.isTest,
needName: needName ?? this.needName,
needPhoneNumber: needPhoneNumber ?? this.needPhoneNumber,
needEmailAddress: needEmailAddress ?? this.needEmailAddress,
needShippingAddress: needShippingAddress ?? this.needShippingAddress,
sendPhoneNumberToProvider: sendPhoneNumberToProvider ?? this.sendPhoneNumberToProvider,
sendEmailAddressToProvider: sendEmailAddressToProvider ?? this.sendEmailAddressToProvider,
isFlexible: isFlexible ?? this.isFlexible,
);