formatAsDecimalPercent method
Formats the number as a decimal percentage with the given locale and decimalDigits.
Implementation
String formatAsDecimalPercent({String? locale, int? decimalDigits}) {
return NumberFormat.decimalPercentPattern(
locale: locale,
decimalDigits: decimalDigits,
).format(this);
}