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
Static Methods
-
isKnown(
String code) → bool -
Whether
codeis a known (built-in or registered) currency. -
of(
String code) → BankCurrency -
Resolves display metadata for
code, falling back to a genericCODE amountpresentation for unknown currencies. -
register(
BankCurrency currency) → void - Registers or overrides a currency at runtime (e.g. a loyalty currency or a corrected symbol).