Price class
Contains all the details associated with a Price
- Annotations
-
- @freezed
Constructors
Properties
- amountMicros → int
-
Price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
no setterinherited
-
copyWith
→ $PriceCopyWith<
Price> -
Create a copy of Price
with the given fields replaced by the non-null parameter values.
no setterinherited
- currencyCode → String
-
Returns ISO 4217 currency code for price and original price.
no setterinherited
- formatted → String
-
Formatted price of the item, including its currency sign. For example $3.00
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this Price to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited