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