Currency class

Currency helper class with currency definitions and formatting utilities.

Constructors

Currency({required String code, required String symbol, required String name, int decimals = 2, bool symbolBefore = true, String thousandSeparator = ',', String decimalSeparator = '.'})
const

Properties

code String
final
decimals int
final
decimalSeparator String
final
hashCode int
The hash code for this object.
no setterinherited
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
symbol String
final
symbolBefore bool
final
thousandSeparator String
final

Methods

format(double value) String
Format a number as currency string
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

Constants

aed → const Currency
aud → const Currency
btc → const Currency
cad → const Currency
chf → const Currency
cny → const Currency
eth → const Currency
eur → const Currency
gbp → const Currency
inr → const Currency
jpy → const Currency
sar → const Currency
sgd → const Currency
usd → const Currency