copyWith method

CartItems copyWith({
  1. Product? product,
  2. Cart? cart,
})

Implementation

CartItems copyWith({  Product? product,
  Cart? cart,
}) => CartItems(  product: product ?? this.product,
  cart: cart ?? this.cart,
);