copyWith method

ArticleRetailOnTicket copyWith({
  1. int? calibreId,
  2. int? id,
  3. String? designation,
  4. num? price,
  5. num? cost,
  6. double? unitsInOnePiece,
  7. bool? status,
})

Implementation

ArticleRetailOnTicket copyWith({
  int? calibreId,
  int? id,
  String? designation,
  num? price,
  num? cost,
  double? unitsInOnePiece,
  bool? status,
}) {
  return ArticleRetailOnTicket(
    kind: ArticleKind.retail,
    calibreId: calibreId ?? this.calibreId,
    id: id ?? this.id,
    designation: designation ?? this.designation,
    price: price ?? this.price,
    cost: cost ?? this.cost,
    unitsInOnePiece: unitsInOnePiece ?? this.unitsInOnePiece,
    status: status ?? this.status,
  );
}