copyWith method
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,
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,
);