ReceiptModel constructor

ReceiptModel({
  1. required String restaurantName,
  2. String? address,
  3. String? mobile,
  4. String? orderType,
  5. String? deliveryTime,
  6. required String printTime,
  7. String? customerName,
  8. String? deliveryAddress,
  9. String? note,
  10. String? paymentMethod,
  11. List<PrintItemText>? items,
  12. List<PrintReciptFooter>? footer,
  13. required double totalAmount,
})

Implementation

ReceiptModel({
  required this.restaurantName,
  this.address,
  this.mobile,
  this.orderType,
  this.deliveryTime,
  required this.printTime,
  this.customerName,
  this.deliveryAddress,
  this.note,
  this.paymentMethod,
  List<PrintItemText>? items,
  List<PrintReciptFooter>? footer,
  required this.totalAmount,
})  : items = items ?? [],
      footer = footer ?? [];