copyWith method

PrinterRequestInterface copyWith({
  1. String? transactionID,
  2. String? id,
  3. String? customerId,
  4. String? customerName,
  5. String? customerEmail,
  6. String? customerMobile,
  7. bool? displayCustomer,
  8. bool? displaySeller,
  9. bool? displayAddress,
  10. bool? displayBusinessMobile,
  11. String? ticketId,
  12. String? ticketName,
  13. String? sellerId,
  14. String? sellerName,
  15. String? currencyCode,
  16. String? countryCode,
  17. String? deviceId,
  18. bool? taxInclusive,
  19. double? totalValue,
  20. double? totalCost,
  21. double? totalMarkup,
  22. double? totalDiscount,
  23. double? totalTax,
  24. double? amountTendered,
  25. double? amountChange,
  26. String? transactionDate,
  27. String? transactionTime,
  28. String? businessName,
  29. PrintAddressInterface? address,
  30. String? vAT,
  31. String? tell,
  32. String? checkoutMessage,
  33. String? taxCode,
  34. double? taxValue,
  35. List<InventoryInterface>? items,
  36. String? header,
  37. String? footer,
  38. String? instagram,
  39. String? website,
  40. String? whatsapp,
  41. Uint8List? image,
  42. double? cashbackAmount,
  43. double? tipAmount,
  44. double? totalDue,
  45. double? withdrawalAmount,
  46. String? paymentType,
  47. 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,
  );
}