custom static method
Insertable<ProductData>
custom(
{ - Expression<int>? id,
- Expression<String>? name,
- Expression<double>? price,
- Expression<bool>? active,
- Expression<String>? imagePath,
- Expression<int>? categoryId,
- Expression<double>? estimatedInputPrice,
- Expression<double>? taxRate,
- Expression<String>? description,
})
Implementation
static Insertable<ProductData> custom({
Expression<int>? id,
Expression<String>? name,
Expression<double>? price,
Expression<bool>? active,
Expression<String>? imagePath,
Expression<int>? categoryId,
Expression<double>? estimatedInputPrice,
Expression<double>? taxRate,
Expression<String>? description,
}) {
return RawValuesInsertable({
if (id != null) 'id': id,
if (name != null) 'name': name,
if (price != null) 'price': price,
if (active != null) 'active': active,
if (imagePath != null) 'image_path': imagePath,
if (categoryId != null) 'category_id': categoryId,
if (estimatedInputPrice != null)
'estimated_input_price': estimatedInputPrice,
if (taxRate != null) 'tax_rate': taxRate,
if (description != null) 'description': description,
});
}