PriceModel constructor

PriceModel({
  1. required ProofType proofType,
  2. required Currency currency,
  3. required bool multipleProducts,
  4. PriceMetaProduct? initialProduct,
  5. bool readyForPriceTagValidation = false,
})

Implementation

PriceModel({
  required this._proofType,
  required this._currency,
  required this.multipleProducts,
  PriceMetaProduct? initialProduct,
  this._readyForPriceTagValidation = false,
}) : _proof = null,
     existingPrices = null,
     _date = DateTime.now(),
     _priceAmountModels = <PriceAmountModel>[
       if (initialProduct != null) PriceAmountModel(product: initialProduct),
     ];