MoneyFormatterSettings constructor

MoneyFormatterSettings({
  1. String symbol = "\$",
  2. String thousandSeparator = ',',
  3. String decimalSeparator = '.',
  4. String symbolAndNumberSeparator = "",
  5. int fractionDigits = 2,
  6. CompactFormatType compactFormatType = CompactFormatType.short,
})

Init instance of MoneyFormatterSettings

Implementation

MoneyFormatterSettings(
    {this.symbol = "\$",
    this.thousandSeparator = ',',
    this.decimalSeparator = '.',
    this.symbolAndNumberSeparator = "",
    this.fractionDigits = 2,
    this.compactFormatType = CompactFormatType.short}) {
  this.symbol = this.symbol;
  this.thousandSeparator = this.thousandSeparator;
  this.decimalSeparator = this.decimalSeparator;
  this.symbolAndNumberSeparator = this.symbolAndNumberSeparator;
  this.fractionDigits = this.fractionDigits;
  this.compactFormatType = this.compactFormatType;
}