MoneyFormatter constructor
MoneyFormatter({
- required double amount,
- MoneyFormatterSettings? settings,
Init instance of FlutterMoneyFormatter
amount (@required) the number that will be formatted
Implementation
MoneyFormatter({required this.amount, this.settings}) {
this.settings = settings ?? MoneyFormatterSettings();
output = _getOutput();
comparator = MoneyFormatterCompare(amount: this.amount);
}