percent static method

String percent(
  1. double value, {
  2. String? locale,
})

Implementation

static String percent(double value, {String? locale}) {
  final fmt = NumberFormat.percentPattern(locale);
  return fmt.format(value / 100);
}