formatIntl method

String formatIntl([
  1. String? locale
])

Formats the value using the locale's decimal pattern.

If you don't provide a locale then we use the systems default locale.

Implementation

String formatIntl([String? locale]) {
  locale ??= Intl.defaultLocale;

  final formatter = NumberFormat.decimalPattern(locale);
  return formatter.format(DecimalIntl(toDecimal()));
}