Add 'decimalDigits' specification for Percent formatters.
PiperOrigin-RevId: 263157925
diff --git a/lib/src/intl/number_format.dart b/lib/src/intl/number_format.dart
index 04576dd..0185472 100644
--- a/lib/src/intl/number_format.dart
+++ b/lib/src/intl/number_format.dart
@@ -180,6 +180,11 @@
NumberFormat.percentPattern([String locale])
: this._forPattern(locale, (x) => x.PERCENT_PATTERN);
+ /// Create a number format that prints as PERCENT_PATTERN.
+ NumberFormat.decimalPercentPattern({String locale, int decimalDigits})
+ : this._forPattern(locale, (x) => x.PERCENT_PATTERN,
+ decimalDigits: decimalDigits);
+
/// Create a number format that prints as SCIENTIFIC_PATTERN.
NumberFormat.scientificPattern([String locale])
: this._forPattern(locale, (x) => x.SCIENTIFIC_PATTERN);