formatAsPercentage method

String formatAsPercentage({
  1. String? locale,
})

Formats the number as a percentage with the given locale.

Implementation

String formatAsPercentage({String? locale}) {
  return NumberFormat.percentPattern(locale).format(this);
}