NumberFormatOptions.custom constructor
NumberFormatOptions.custom({
- FormatStyle style = const DecimalStyle(),
- String? currency,
- LocaleMatcher localeMatcher = LocaleMatcher.bestfit,
- SignDisplay signDisplay = SignDisplay.auto,
- Notation notation = const StandardNotation(),
- Grouping useGrouping = Grouping.auto,
- String? numberingSystem,
- RoundingMode roundingMode = RoundingMode.halfExpand,
- TrailingZeroDisplay trailingZeroDisplay = TrailingZeroDisplay.auto,
- int minimumIntegerDigits = 1,
- 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);