Price class
Constructors
- Price.new(Decimal price)
- Price.fromDouble(double value)
- Price.fromInt(int value)
- Price.parse(String value)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- price ↔ Decimal
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
displayCurrency(
) → String -
div(
Price value) → Price -
divDouble(
double value) → Price -
divInt(
int value) → Price -
minus(
Price value) → Price -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
plus(
Price value) → Price -
round(
{int scale = 2}) → Price -
times(
Price value) → Price -
timesDouble(
double value) → Price -
timesInt(
int value) → Price -
toDouble(
) → double -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited