copyWith method

SalesOrderCompanion copyWith({
  1. Value<int>? id,
  2. Value<DateTime>? orderDateTime,
  3. Value<double>? amount,
  4. Value<double>? taxAmount,
  5. Value<String>? status,
  6. Value<int>? sellerId,
  7. Value<int>? customerId,
})

Implementation

SalesOrderCompanion copyWith({
  Value<int>? id,
  Value<DateTime>? orderDateTime,
  Value<double>? amount,
  Value<double>? taxAmount,
  Value<String>? status,
  Value<int>? sellerId,
  Value<int>? customerId,
}) {
  return SalesOrderCompanion(
    id: id ?? this.id,
    orderDateTime: orderDateTime ?? this.orderDateTime,
    amount: amount ?? this.amount,
    taxAmount: taxAmount ?? this.taxAmount,
    status: status ?? this.status,
    sellerId: sellerId ?? this.sellerId,
    customerId: customerId ?? this.customerId,
  );
}