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