copyWith method

CreditNoteItem copyWith({
  1. String? orderId,
  2. String? orderNumber,
  3. String? totalItem,
  4. String? subTotal,
  5. String? discount,
  6. String? grandTotal,
  7. StatusData? status,
  8. String? remarks,
  9. CreatedAtDateTime? createdAtDateTime,
  10. String? modifyBtnShow,
  11. String? placeByType,
  12. 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,
);