copyWith method

  1. @override
ProxyArticleWorth copyWith({
  1. int? price,
  2. int? cost,
  3. int? calibreId,
  4. int? articleId,
  5. int? id,
  6. int? proxyCalibreId,
  7. int? proxyArticleId,
  8. bool? status,
  9. double? minimumUnitPerBasket,
  10. double? articleWeight,
})
override

Implementation

@override
ProxyArticleWorth copyWith({
  int? price,
  int? cost,
  int? calibreId,
  int? articleId,
  int? id,
  int? proxyCalibreId,
  int? proxyArticleId,
  bool? status,
  double? minimumUnitPerBasket,
  double? articleWeight,
}) {
  return ProxyArticleWorth(
    price: price ?? this.price,
    cost: cost ?? this.cost,
    calibreId: calibreId ?? this.calibreId,
    articleId: articleId ?? this.articleId,
    id: id ?? this.id,
    proxyArticleId: proxyArticleId ?? this.proxyArticleId,
    proxyCalibreId: proxyCalibreId ?? this.proxyCalibreId,
    status: status ?? this.status,
    minimumUnitPerBasket: minimumUnitPerBasket ?? this.minimumUnitPerBasket,
    articleWeight: articleWeight ?? this.articleWeight,
  );
}