copyWith method

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

Implementation

SalesOrderLineCompanion copyWith({
  Value<int>? id,
  Value<int>? salesOrderId,
  Value<int>? productId,
  Value<double>? units,
  Value<double>? amount,
  Value<double>? taxAmount,
}) {
  return SalesOrderLineCompanion(
    id: id ?? this.id,
    salesOrderId: salesOrderId ?? this.salesOrderId,
    productId: productId ?? this.productId,
    units: units ?? this.units,
    amount: amount ?? this.amount,
    taxAmount: taxAmount ?? this.taxAmount,
  );
}