copyWith method

ProxyArticle copyWith({
  1. int? calibreId,
  2. int? articleId,
  3. int? id,
  4. int? proxyCalibreId,
  5. int? proxyArticleId,
  6. bool? status,
  7. double? minimumUnitPerBasket,
  8. double? articleWeight,
})

Implementation

ProxyArticle copyWith({
  int? calibreId,
  int? articleId,
  int? id,
  int? proxyCalibreId,
  int? proxyArticleId,
  bool? status,
  double? minimumUnitPerBasket,
  double? articleWeight,
}) {
  return ProxyArticle(
    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,
  );
}