copyWith method

ProductCompanion copyWith({
  1. Value<int>? id,
  2. Value<String>? name,
  3. Value<double>? price,
  4. Value<bool>? active,
  5. Value<String?>? imagePath,
  6. Value<int>? categoryId,
  7. Value<double>? estimatedInputPrice,
  8. Value<double>? taxRate,
  9. Value<String?>? description,
})

Implementation

ProductCompanion copyWith({
  Value<int>? id,
  Value<String>? name,
  Value<double>? price,
  Value<bool>? active,
  Value<String?>? imagePath,
  Value<int>? categoryId,
  Value<double>? estimatedInputPrice,
  Value<double>? taxRate,
  Value<String?>? description,
}) {
  return ProductCompanion(
    id: id ?? this.id,
    name: name ?? this.name,
    price: price ?? this.price,
    active: active ?? this.active,
    imagePath: imagePath ?? this.imagePath,
    categoryId: categoryId ?? this.categoryId,
    estimatedInputPrice: estimatedInputPrice ?? this.estimatedInputPrice,
    taxRate: taxRate ?? this.taxRate,
    description: description ?? this.description,
  );
}