NumberFormat.compactLong constructor

NumberFormat.compactLong({
  1. String? locale,
  2. bool explicitSign = false,
})

A number format for "long" compact representations, e.g. "1.2 million" instead of "1,200,000".

Implementation

factory NumberFormat.compactLong(
    {String? locale, bool explicitSign = false}) {
  return _CompactNumberFormat(
      locale: locale,
      formatType: _CompactFormatType.COMPACT_DECIMAL_LONG_PATTERN,
      explicitSign: explicitSign);
}