copyWith method

OrderListDataItem copyWith({
  1. String? orderId,
  2. String? billType,
  3. String? orderNumber,
  4. String? totalItem,
  5. String? paymentMethod,
  6. String? subTotal,
  7. String? discount,
  8. String? tax,
  9. String? grandTotal,
  10. String? payable,
  11. Status? status,
  12. String? pickUpOptions,
  13. String? pickUpPriority,
  14. String? remarks,
  15. CreatedAtDateTime? createdAtDateTime,
})

Implementation

OrderListDataItem copyWith({  String? orderId,
  String? billType,
  String? orderNumber,
  String? totalItem,
  String? paymentMethod,
  String? subTotal,
  String? discount,
  String? tax,
  String? grandTotal,
  String? payable,
  Status? status,
  String? pickUpOptions,
  String? pickUpPriority,
  String? remarks,
  CreatedAtDateTime? createdAtDateTime,
}) => OrderListDataItem(  orderId: orderId ?? _orderId,
  billType : billType ?? _billType,
  orderNumber: orderNumber ?? _orderNumber,
  totalItem: totalItem ?? _totalItem,
  paymentMethod: paymentMethod ?? _paymentMethod,
  subTotal: subTotal ?? _subTotal,
  discount: discount ?? _discount,
  tax: tax ?? _tax,
  grandTotal: grandTotal ?? _grandTotal,
  payable: payable ?? _payable,
  status: status ?? _status,
  pickUpOptions: pickUpOptions ?? _pickUpOptions,
  pickUpPriority: pickUpPriority ?? _pickUpPriority,
  remarks: remarks ?? _remarks,
  createdAtDateTime: createdAtDateTime ?? _createdAtDateTime,
);