custom static method

Insertable<ProductData> custom({
  1. Expression<int>? id,
  2. Expression<String>? name,
  3. Expression<double>? price,
  4. Expression<bool>? active,
  5. Expression<String>? imagePath,
  6. Expression<int>? categoryId,
  7. Expression<double>? estimatedInputPrice,
  8. Expression<double>? taxRate,
  9. 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,
  });
}