NumberFormatOptions.percent constructor

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

Implementation

factory NumberFormatOptions.percent({
  //General options
  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,
}) {
  return NumberFormatOptions.custom(
    style: const PercentStyle(),
    localeMatcher: localeMatcher,
    signDisplay: signDisplay,
    notation: notation,
    useGrouping: useGrouping,
    numberingSystem: numberingSystem,
    roundingMode: roundingMode,
    trailingZeroDisplay: trailingZeroDisplay,
    minimumIntegerDigits: minimumIntegerDigits,
  );
}