Money class

An amount of money in some currency.

You can query values with MoneyQuery.

Constructors

Money(String currency, double amount)
const
Money.eur(double amount)
A shorthand for euros.
const
Money.usd(double amount)
A shorthand for US dollars.
const

Properties

amount double
final
currency String
final
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
scale(double scale) Money
Multiplies the amount.
toString() String
A string representation of this object. [...]
override

Operators

operator +(Money other) Money
Adds an amount. [...]
operator -(Money other) Money
Subtracts an amount. [...]
operator ==(dynamic other) bool
The equality operator. [...]
override

Constants

serializer → const Serializer
_MoneySerializer()