formatAsCompactLong method

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

Formats the number in a long compact form with the given locale.

Implementation

String formatAsCompactLong({String? locale, bool explicitSign = false}) {
  return NumberFormat.compactLong(
    locale: locale,
    explicitSign: explicitSign,
  ).format(this);
}