copyWith method

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

Implementation

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