PriceModel constructor
- required ProofType proofType,
- required Currency currency,
- required bool multipleProducts,
- PriceMetaProduct? initialProduct,
- 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),
];