Currency class

Implemented types

Constructors

Currency(String _code, String _name, String _flag, String _symbolPrefix, String _symbolSuffix, int _exponent, String _unit, String _units, String _subunit, String _subunits, String _prefix)

Properties

code String
3 character ISO-4217 currency code. e.g. "NZD"
no setter
exponent int
Number of fractional digits of the subunit. Range is 0..4. e.g. Most currencies have 2. JPY has 0, KWR has 3.
no setter
flag String
Flag of currencies country. Unicode compatible. e.g. "🇳🇿"
no setter
hashCode int
The hash code for this object.
no setteroverride
name String
Name of the currency used for display purposes. e.g. "New Zealand dollar"
no setter
prefix String
Currency country to prepend as a prefix for accessibility purposes. e.g. "australian"
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subunit String
Name of the subunit used for accessibility purposes. e.g. "cent"
no setter
subunits String
Plural name of the subunit used for accessibility purposes. e.g. "cents"
no setter
symbolPrefix String
Formatted money amount symbol prefix. Currencies have a symbolPrefix or symbolSuffix, but not both. Unicode compatible. e.g. "$"
no setter
symbolSuffix String
Formatted money amount symbol suffix. Currencies have a symbolPrefix or symbolSuffix, but not both. Unicode compatible. e.g. "kr".
no setter
unit String
Name of the unit used for accessibility purposes. e.g. "dollar"
no setter
units String
Plural name of the unit used for accessibility purposes. e.g. "dollars"
no setter

Methods

compareTo(dynamic other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A textual representation of this instance, suitable for debugging. Returns string in the following format: 'NZD,$,New Zealand dollar,2DP'
override

Operators

operator ==(Object other) bool
Returns a Boolean value indicating whether two Currency objects are equal.
override