aed_currency_formatter
library
Classes
-
CurrencyOption
-
One selectable entry in CurrencyPicker: an ISO 4217 currency code paired
with a representative ISO 3166-1 country code used to render its flag.
-
CurrencyPicker
-
A dropdown for picking a currency, showing each option's country flag
alongside its ISO 4217 code.
-
CurrencyText
-
Displays value as currency text for any world currency, resolving the
currency from locale (or the device's current locale when locale is
omitted).
Enums
-
CurrencyNegativeFormat
-
Controls how negative amounts are rendered by
AedCurrencyFormatter and
SarCurrencyFormatter.
Properties
-
allCurrencyOptions
→ List<CurrencyOption>
-
Every currency known to this package, each paired with the
alphabetically-first country that uses it, derived from
countryToCurrencyCode and sorted by currency code.
final
Functions
-
countryFlagEmoji(String countryCode)
→ String
-
Converts an ISO 3166-1 alpha-2 country code (e.g.
AE) to its flag emoji
by mapping each letter to its Unicode regional indicator symbol.
-
currencyCodeForLocale(String locale)
→ String?
-
Resolves the ISO 4217 currency code for
locale (e.g. en_US, en-US,
or ar_SA), using the country/region subtag. Returns null if the
locale has no region subtag, or the region isn't in countryToCurrencyCode.
-
systemLocale()
→ String
-
The device's current locale, as an
intl-style string (e.g. en_US).