NumberCurrencyExtensions extension
- on
Methods
-
toAbbreviated(
{int decimalCount = 1, bool isLowercase = false, String? currencySymbol, CurrencyDirection currencyDirection = CurrencyDirection.left}) → String -
Available on num, provided by the NumberCurrencyExtensions extension
Abbreviates the number to a concise format (e.g., 1.1B, 2.0K). -
toCurrency(
{int decimalPlaces = 2, String? currencySymbol = 'KES', CurrencyDirection currencyDirection = CurrencyDirection.left, String thousandsSeparator = ',', String decimalSeparator = '.'}) → String -
Available on num, provided by the NumberCurrencyExtensions extension
Converts the number to a given currency format with customizable separators and symbol placement.