copyWith method
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,
);
}