DHUNumberFormatStringExtensions extension

Extension methods for the String type to format numbers using the intl package.

on

Methods

compactCurrencyFormat({String? locale, int? decimalDigits}) NumberFormat

Available on String, provided by the DHUNumberFormatStringExtensions extension

Creates a NumberFormat object as compact simple currency using the string as the currency name, along with the given locale.
simpleCurrencyFormat({String? locale, int? decimalDigits}) NumberFormat

Available on String, provided by the DHUNumberFormatStringExtensions extension

Creates a NumberFormat object as simple currency using the string as the currency name, along with the given locale.
symbolCurrencyFormat({String? locale, String? name, int? decimalDigits, String? customPattern}) NumberFormat

Available on String, provided by the DHUNumberFormatStringExtensions extension

Creates a NumberFormat object as currency using the string as the currency symbol, along with the given locale and optional decimal digits.