NumIntlFormatExtensions extension
Locale-aware number formatting backed by intl's CLDR number-symbol data.
This is the CLDR-accurate counterpart to the dependency-free
formatNumberLocale free function in num_locale_utils.dart. Use this when
the correct separators must come from real locale data (a BCP-47 locale
string) rather than hand-supplied separator characters; use
formatNumberLocale when avoiding the intl dependency matters more than
CLDR accuracy.
- on
Methods
-
formatNumber(
{String format = '#,##0', String? locale}) → String -
Available on num, provided by the NumIntlFormatExtensions extension
Renders this number with locale-aware grouping/decimal separators.