copyWith method
MemberCartModel
copyWith({
- String? documentID,
- String? appId,
- List<
CartItemModel> ? cartItems,
override
Implementation
@override
MemberCartModel copyWith({
String? documentID,
String? appId,
List<CartItemModel>? cartItems,
}) {
return MemberCartModel(
documentID: documentID ?? this.documentID,
appId: appId ?? this.appId,
cartItems: cartItems ?? this.cartItems,
);
}