copyWith method
CreditNoteItem
copyWith(
{ - String? orderId,
- String? orderNumber,
- String? totalItem,
- String? subTotal,
- String? discount,
- String? grandTotal,
- StatusData? status,
- CreatedAtDateTime? createdAtDateTime,
- String? modifyBtnShow,
- String? placeByType,
- String? cnType,
})
Implementation
CreditNoteItem copyWith({ String? orderId,
String? orderNumber,
String? totalItem,
String? subTotal,
String? discount,
String? grandTotal,
StatusData? status,
String? remarks,
CreatedAtDateTime? createdAtDateTime,
String? modifyBtnShow,
String? placeByType,
String? cnType,
}) => CreditNoteItem( orderId: orderId ?? _orderId,
orderNumber: orderNumber ?? _orderNumber,
totalItem: totalItem ?? _totalItem,
subTotal: subTotal ?? _subTotal,
discount: discount ?? _discount,
grandTotal: grandTotal ?? _grandTotal,
status: status ?? _status,
remarks: remarks ?? _remarks,
createdAtDateTime: createdAtDateTime ?? _createdAtDateTime,
modifyBtnShow: modifyBtnShow ?? _modifyBtnShow,
placeByType: placeByType ?? _placeByType,
cnType: cnType ?? _cnType,
);