copyWith method
PaymayaBuyer
copyWith({
- String? firstName,
- String? middleName,
- String? lastName,
- String? birthday,
- String? customerSince,
- String? sex,
- PaymayaContact? contact,
- PaymayaShippingAddress? shippingAddress,
- PaymayaBillingAddress? billingAddress,
Implementation
PaymayaBuyer copyWith({
String? firstName,
String? middleName,
String? lastName,
String? birthday,
String? customerSince,
String? sex,
PaymayaContact? contact,
PaymayaShippingAddress? shippingAddress,
PaymayaBillingAddress? billingAddress,
}) {
return PaymayaBuyer(
firstName: firstName ?? this.firstName,
middleName: middleName ?? this.middleName,
lastName: lastName ?? this.lastName,
birthday: birthday ?? this.birthday,
customerSince: customerSince ?? this.customerSince,
sex: sex ?? this.sex,
contact: contact ?? this.contact,
shippingAddress: shippingAddress ?? this.shippingAddress,
billingAddress: billingAddress ?? this.billingAddress,
);
}