copyWith method

ArticleBasketOnTicket copyWith({
  1. int? calibreId,
  2. int? id,
  3. String? designation,
  4. num? discountAmountSalesOnly,
  5. num? markupAmountSalesOnly,
  6. List<ProxyArticle>? proxies,
})

Implementation

ArticleBasketOnTicket copyWith({
  int? calibreId,
  int? id,
  String? designation,
  num? discountAmountSalesOnly,
  num? markupAmountSalesOnly,
  List<ProxyArticle>? proxies,
}) {
  return ArticleBasketOnTicket(
    calibreId: calibreId ?? this.calibreId,
    id: id ?? this.id,
    designation: designation ?? this.designation,
    discountAmountSalesOnly:
        discountAmountSalesOnly ?? this.discountAmountSalesOnly,
    markupAmountSalesOnly:
        markupAmountSalesOnly ?? this.markupAmountSalesOnly,
    proxies: proxies ?? this.proxies,
  );
}