number method

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

Numeric value formatter

Implementation

String number(num value, [int maxWidth = 0]) {
  if (isRaw) {
    return value.toString();
  }
  return string(numberFormat.format(value), maxWidth, true);
}