NumberFormatOptions.custom constructor

NumberFormatOptions.custom({
  1. FormatStyle style = const DecimalStyle(),
  2. String? currency,
  3. LocaleMatcher localeMatcher = LocaleMatcher.bestfit,
  4. SignDisplay signDisplay = SignDisplay.auto,
  5. Notation notation = const StandardNotation(),
  6. Grouping useGrouping = Grouping.auto,
  7. String? numberingSystem,
  8. RoundingMode roundingMode = RoundingMode.halfExpand,
  9. TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto,
  10. int minimumIntegerDigits = 1,
  11. Digits? digits,
})

Implementation

NumberFormatOptions.custom(
    //General options
    {this.style = const DecimalStyle(),
    this.currency,
    this.localeMatcher = LocaleMatcher.bestfit,
    this.signDisplay = SignDisplay.auto,
    this.notation = const StandardNotation(),
    this.useGrouping = Grouping.auto,
    this.numberingSystem,
    this.roundingMode = RoundingMode.halfExpand,
    this.trailingZeroDisplay = TrailingZeroDisplay.auto,
    this.minimumIntegerDigits = 1,
    Digits? digits})
    : digits = getDigits(style, digits);