ProductCompanion.insert constructor

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

Implementation

ProductCompanion.insert({
  this.id = const Value.absent(),
  required String name,
  required double price,
  required bool active,
  this.imagePath = const Value.absent(),
  required int categoryId,
  required double estimatedInputPrice,
  required double taxRate,
  this.description = const Value.absent(),
}) : name = Value(name),
     price = Value(price),
     active = Value(active),
     categoryId = Value(categoryId),
     estimatedInputPrice = Value(estimatedInputPrice),
     taxRate = Value(taxRate);