ECommerceAmount class

Class with cost information. You can set:

  • amount - quantity of goods, numeric value;
  • currency — units of measurement.

Constructors

ECommerceAmount({required Decimal amount, required String currency})
Creates an object with cost information. All parameters are required.
const

Properties

amount → Decimal
final
currency String
final
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
toString() String
A string representation of this object.
inherited

Operators

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