UnitPrice class

The UnitPrice class represents a unit price with an amount and currency, and has a method to convert it to a map.

Constructors

UnitPrice.new(int amount, String currency)

Properties

amount int
getter/setter pair
currency String
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

asMap() Map
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