percentFormat function

NumberFormat percentFormat(
  1. BuildContext context, {
  2. int decimalDigits = 2,
})

Percent formatter with two decimal points.

Implementation

NumberFormat percentFormat(BuildContext context, {int decimalDigits = 2}) {
  return NumberFormat.decimalPercentPattern(
    locale: locale(context),
    decimalDigits: decimalDigits,
  );
}