compact method

String compact([
  1. String? locale
])

format number with intl compact format

Implementation

String compact([String? locale]) {
  if (this == null) return '';
  return NumberFormat.compact(locale: locale).format(this!);
}