copyWith method

SalesOrderLineData copyWith({
  1. int? id,
  2. int? salesOrderId,
  3. int? productId,
  4. double? units,
  5. double? amount,
  6. double? taxAmount,
})

Implementation

SalesOrderLineData copyWith({
  int? id,
  int? salesOrderId,
  int? productId,
  double? units,
  double? amount,
  double? taxAmount,
}) => SalesOrderLineData(
  id: id ?? this.id,
  salesOrderId: salesOrderId ?? this.salesOrderId,
  productId: productId ?? this.productId,
  units: units ?? this.units,
  amount: amount ?? this.amount,
  taxAmount: taxAmount ?? this.taxAmount,
);