Currency enum
Supported ISO 4217 currencies for ecommerce money values.
Values
- usd → const Currency
-
United States dollar.
const Currency('USD', 2, r'$') - eur → const Currency
-
Euro.
const Currency('EUR', 2, '€') - gbp → const Currency
-
British pound sterling.
const Currency('GBP', 2, '£') - jpy → const Currency
-
Japanese yen.
const Currency('JPY', 0, '¥') - khr → const Currency
-
Cambodian riel.
const Currency('KHR', 0, '៛') - idr → const Currency
-
Indonesian rupiah.
const Currency('IDR', 0, 'Rp') - kwd → const Currency
-
Kuwaiti dinar.
const Currency('KWD', 3, 'KD') - bhd → const Currency
-
Bahraini dinar.
const Currency('BHD', 3, 'BD') - thb → const Currency
-
Thai baht.
const Currency('THB', 2, '฿') - myr → const Currency
-
Malaysian ringgit.
const Currency('MYR', 2, 'RM') - vnd → const Currency
-
Vietnamese dong.
const Currency('VND', 0, '₫') - krw → const Currency
-
South Korean won.
const Currency('KRW', 0, '₩') - aud → const Currency
-
Australian dollar.
const Currency('AUD', 2, r'A$') - cad → const Currency
-
Canadian dollar.
const Currency('CAD', 2, r'C$') - cny → const Currency
-
Chinese yuan.
const Currency('CNY', 2, '¥') - sgd → const Currency
-
Singapore dollar.
const Currency('SGD', 2, r'S$')
Properties
- code → String
-
ISO 4217 currency code.
final
- decimalPlaces → int
-
Number of decimal places used by the currency.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- subunitFactor → int
-
Minor-unit scale, such as 100 for USD or 1 for JPY.
no setter
- symbol → String
-
Display symbol for deterministic formatting.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited