Money.fromIntWithCurrency constructor
Creates an instance of Money from an integer.
minorUnits
- the no. minorUnits of the currency
, e.g (cents).
Implementation
factory Money.fromIntWithCurrency(int minorUnits, Currency currency,
{int? decimalDigits}) =>
Money._from(
Fixed.fromInt(minorUnits,
scale: decimalDigits ?? currency.decimalDigits),
currency);