copyWith method

MemberCartEntity copyWith({
  1. String? documentID,
  2. String? appId,
  3. List<CartItemEntity>? cartItems,
})

Implementation

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