CurrencyAmount.fromDecimal(Decimal amount, {required this.currency}) : amount = amount.usingFractionDigits(currency.fractionDigitsInPricing);