Money.fromFixedWithCurrency constructor
Creates a Money from a Fixed amount
.
The amount
's decimal digits are adjusted to match the
currency selected via currency
.
Implementation
factory Money.fromFixedWithCurrency(Fixed amount, Currency currency,
{int? decimalDigits}) =>
Money._from(
Fixed.copyWith(amount,
scale: decimalDigits ?? currency.decimalDigits),
currency);