percent method

String percent(
  1. num value, [
  2. int maxWidth = 0
])

Percentage value formatter

Implementation

String percent(num value, [int maxWidth = 0]) {
  if (isRaw) {
    return value.toStringAsFixed(2);
  }
  return string(percentFormat.format(value), maxWidth, true);
}