Price constructor

Price({
  1. Credit? priceExclTax,
  2. Credit? tax,
  3. PriceBreakdown? breakdown,
})

Implementation

factory Price({
  $0.Credit? priceExclTax,
  $0.Credit? tax,
  PriceBreakdown? breakdown,
}) {
  final result = create();
  if (priceExclTax != null) result.priceExclTax = priceExclTax;
  if (tax != null) result.tax = tax;
  if (breakdown != null) result.breakdown = breakdown;
  return result;
}