copyWith method
PrinterRequestInterface
copyWith({
- String? transactionID,
- String? id,
- String? customerId,
- String? customerName,
- String? customerEmail,
- String? customerMobile,
- bool? displayCustomer,
- bool? displaySeller,
- bool? displayAddress,
- bool? displayBusinessMobile,
- String? ticketId,
- String? ticketName,
- String? sellerId,
- String? sellerName,
- String? currencyCode,
- String? countryCode,
- String? deviceId,
- bool? taxInclusive,
- double? totalValue,
- double? totalCost,
- double? totalMarkup,
- double? totalDiscount,
- double? totalTax,
- double? amountTendered,
- double? amountChange,
- String? transactionDate,
- String? transactionTime,
- String? businessName,
- PrintAddressInterface? address,
- String? vAT,
- String? tell,
- String? checkoutMessage,
- String? taxCode,
- double? taxValue,
- List<
InventoryInterface> ? items, - String? header,
- String? instagram,
- String? website,
- String? whatsapp,
- Uint8List? image,
- double? cashbackAmount,
- double? tipAmount,
- double? totalDue,
- double? withdrawalAmount,
- String? paymentType,
- String? transactionReference,
Implementation
PrinterRequestInterface copyWith({
String? transactionID,
String? id,
String? customerId,
String? customerName,
String? customerEmail,
String? customerMobile,
bool? displayCustomer,
bool? displaySeller,
bool? displayAddress,
bool? displayBusinessMobile,
String? ticketId,
String? ticketName,
String? sellerId,
String? sellerName,
String? currencyCode,
String? countryCode,
String? deviceId,
bool? taxInclusive,
double? totalValue,
double? totalCost,
double? totalMarkup,
double? totalDiscount,
double? totalTax,
double? amountTendered,
double? amountChange,
String? transactionDate,
String? transactionTime,
String? businessName,
PrintAddressInterface? address,
String? vAT,
String? tell,
String? checkoutMessage,
String? taxCode,
double? taxValue,
List<InventoryInterface>? items,
String? header,
String? footer,
String? instagram,
String? website,
String? whatsapp,
Uint8List? image,
double? cashbackAmount,
double? tipAmount,
double? totalDue,
double? withdrawalAmount,
String? paymentType,
String? transactionReference,
}) {
return PrinterRequestInterface(
transactionID: transactionID ?? this.transactionID,
id: id ?? this.id,
customerId: customerId ?? this.customerId,
customerName: customerName ?? this.customerName,
customerEmail: customerEmail ?? this.customerEmail,
customerMobile: customerMobile ?? this.customerMobile,
displayCustomer: displayCustomer ?? this.displayCustomer,
displaySeller: displaySeller ?? this.displaySeller,
displayAddress: displayAddress ?? this.displayAddress,
displayBusinessMobile:
displayBusinessMobile ?? this.displayBusinessMobile,
ticketId: ticketId ?? this.ticketId,
ticketName: ticketName ?? this.ticketName,
sellerId: sellerId ?? this.sellerId,
sellerName: sellerName ?? this.sellerName,
currencyCode: currencyCode ?? this.currencyCode,
countryCode: countryCode ?? this.countryCode,
deviceId: deviceId ?? this.deviceId,
taxInclusive: taxInclusive ?? this.taxInclusive,
totalValue: totalValue ?? this.totalValue,
totalCost: totalCost ?? this.totalCost,
totalMarkup: totalMarkup ?? this.totalMarkup,
totalDiscount: totalDiscount ?? this.totalDiscount,
totalTax: totalTax ?? this.totalTax,
amountTendered: amountTendered ?? this.amountTendered,
amountChange: amountChange ?? this.amountChange,
transactionDate: transactionDate ?? this.transactionDate,
transactionTime: transactionTime ?? this.transactionTime,
businessName: businessName ?? this.businessName,
address: address ?? this.address,
vAT: vAT ?? this.vAT,
tell: tell ?? this.tell,
checkoutMessage: checkoutMessage ?? this.checkoutMessage,
taxCode: taxCode ?? this.taxCode,
taxValue: taxValue ?? this.taxValue,
items: items ?? this.items,
header: header ?? this.header,
footer: footer ?? this.footer,
instagram: instagram ?? this.instagram,
website: website ?? this.website,
whatsapp: whatsapp ?? this.whatsapp,
image: image ?? this.image,
cashbackAmount: cashbackAmount ?? this.cashbackAmount,
tipAmount: tipAmount ?? this.tipAmount,
paymentType: paymentType ?? this.paymentType,
totalDue: totalDue ?? this.totalDue,
withdrawalAmount: withdrawalAmount ?? this.withdrawalAmount,
transactionReference: transactionReference ?? this.transactionReference,
);
}