copyWith method
Implementation
MemberCartEntity copyWith({
String? documentID,
String? appId,
List<CartItemEntity>? cartItems,
}) {
return MemberCartEntity(
appId: appId ?? this.appId,
cartItems: cartItems ?? this.cartItems,
);
}
MemberCartEntity copyWith({
String? documentID,
String? appId,
List<CartItemEntity>? cartItems,
}) {
return MemberCartEntity(
appId: appId ?? this.appId,
cartItems: cartItems ?? this.cartItems,
);
}