copyWith method

CartListResponseModel copyWith({
  1. List<CartItems>? data,
  2. String? totalItem,
  3. String? subTotal,
  4. String? discount,
  5. String? discountDisplay,
  6. String? discountPrice,
  7. String? sgst,
  8. String? cgst,
  9. String? igst,
  10. String? roundingOff,
  11. String? grandTotal,
  12. num? totalRecords,
  13. List<Summary>? summary,
  14. List<FreeProduct>? freeProduct,
  15. FreeProductTotal? freeProductTotal,
  16. num? success,
  17. String? message,
  18. UserWiseChanges? userWiseChanges,
  19. RequirePrescription? requirePrescription,
})

Implementation

CartListResponseModel copyWith({  List<CartItems>? data,
  String? totalItem,
  String? subTotal,
  String? discount,
  String? discountDisplay,
  String? discountPrice,
  String? sgst,
  String? cgst,
  String? igst,
  String? roundingOff,
  String? grandTotal,
  num? totalRecords,
  List<Summary>? summary,
  List<FreeProduct>? freeProduct,
  FreeProductTotal? freeProductTotal,
  num? success,
  String? message,
  UserWiseChanges? userWiseChanges,
  RequirePrescription? requirePrescription,
}) => CartListResponseModel(  data: data ?? this.data,
  totalItem: totalItem ?? this.totalItem,
  subTotal: subTotal ?? this.subTotal,
  discount: discount ?? this.discount,
  discountDisplay: discountDisplay ?? this.discountDisplay,
  discountPrice: discountPrice ?? this.discountPrice,
  sgst: sgst ?? this.sgst,
  cgst: cgst ?? this.cgst,
  igst: igst ?? this.igst,
  roundingOff: roundingOff ?? this.roundingOff,
  grandTotal: grandTotal ?? this.grandTotal,
  totalRecords: totalRecords ?? this.totalRecords,
  summary: summary ?? this.summary,
  freeProduct: freeProduct ?? this.freeProduct,
  freeProductTotal: freeProductTotal ?? this.freeProductTotal,
  success: success ?? this.success,
  message: message ?? this.message,
    userWiseChanges: userWiseChanges ?? this.userWiseChanges,
    requirePrescription : requirePrescription ?? this.requirePrescription,
);