CurrencyManager class

Constructors

CurrencyManager()
Returns the singleton instance of CurrencyManager.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

add(Currency currency) → void
Adds a currency into the list of known currencies. If the currency with the given code already exists, it is replaced with the given currency.
get(String code) Currency?
Returns the currency with the given code. If the given code does not exist, then nil is returned.
list() List<Currency>
Returns a list of all known currencies sorted by currency code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
populateWithStaticList() → void
Populates the currency manager with a hardcoded list of well known currencies. The list was compiled from the 5 major banks in New Zealand:
remove(String code) → void
Removes a currency from the list of known currencies. If the currency with the given code does not exist, no error is raised.
removeAll() → void
Removes all known currencies.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited