DVMoney class
An amount in a currency's minor units.
Integer, because a price held as a double is a price that is occasionally 9.999999999999998.
Properties
- amount → int
-
The amount, in currency's minor units: cents for USD, yen for JPY.
final
- currency → String
-
An upper-case ISO 4217 code.
final
- exponent → int
-
The decimal places this currency's minor unit has.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
inCurrency(
String to) → DVMoney -
This amount in
to, using a rate the application configured. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override