CurrencyConfig class

Currency configuration management

Constructors

CurrencyConfig()

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 Methods

addCurrency(String code, CurrencyInfo currency) → void
Add a new currency
getAllCurrencies() Map<String, CurrencyInfo>
Get all currencies
getAvailableCurrencyCodes() List<String>
Get list of available currency codes
getCurrency(String code) CurrencyInfo?
Get a currency by code
getCurrencyFromEnum(Currency currency) CurrencyInfo?
Get a currency from enum
hasCurrency(String code) bool
Check if a currency exists
removeCurrency(String code) → void
Remove a currency
reset() → void
Reset currencies to default values
updateCurrency(String code, CurrencyInfo currency) → void
Update an existing currency