StockMovementLot constructor

StockMovementLot({
  1. String? lotId,
  2. required int quantity,
  3. String? expiresOn,
  4. String? batch,
  5. String? serialNumber,
  6. String? receivedAt,
  7. int? valueCents,
  8. bool? hasValueCents,
})

Implementation

StockMovementLot({
  this.lotId,
  required this.quantity,
  this.expiresOn,
  this.batch,
  this.serialNumber,
  this.receivedAt,
  this.valueCents,
  bool? hasValueCents,
}) : hasValueCents = hasValueCents ?? valueCents != null;