localizedCurrency function

String localizedCurrency(
  1. num value, [
  2. String currency = 'USD',
  3. String? locale
])

Formats a localized currency string for the active locale on BloomI18n.instance.

final str = localizedCurrency(19.99, 'USD'); // "$19.99"

See also:

Implementation

String localizedCurrency(num value, [String currency = 'USD', String? locale]) =>
    formatCurrency(value, currency: currency, locale: locale);