Price class

Contains all the details associated with a Price

Annotations
  • @freezed

Constructors

Price(String formatted, int amountMicros, String currencyCode)
const
factory
Price.fromJson(Map<String, dynamic> json)
factory

Properties

amountMicros int
Price in micro-units, where 1,000,000 micro-units equal one unit of the currency.
no setterinherited
copyWith → $PriceCopyWith<Price>
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>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited