BankCurrencies class abstract final

Registry of currency display metadata used by BankMoneyFormatter, BankAmountInputField, and every money-rendering widget.

Unknown codes degrade gracefully: of returns a generic entry that renders as CODE amount with two decimals. Host apps can register additional or overriding entries at startup via register.

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

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

Static Properties

all List<BankCurrency>
All known currencies — built-in plus any registered at runtime — sorted by ISO code. Useful for building a currency picker or a formatting demo.
no setter
codes List<String>
All known ISO 4217 codes, sorted.
no setter

Static Methods

isKnown(String code) bool
Whether code is a known (built-in or registered) currency.
of(String code) BankCurrency
Resolves display metadata for code, falling back to a generic CODE amount presentation for unknown currencies.
register(BankCurrency currency) → void
Registers or overrides a currency at runtime (e.g. a loyalty currency or a corrected symbol).