MoneyFormatter constructor

MoneyFormatter({
  1. required double amount,
  2. 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);
}