Amount class

Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.

Constructors

Amount(String value, Currency currency, Map<String, dynamic>? metadata)
Amount.fromMap(Map<String, dynamic> map)
factory

Properties

currency Currency
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
metadata Map<String, dynamic>?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Value of the transaction in atomic units represented as an arbitrary-sized signed integer. For example, 1 BTC would be represented by a value of 100000000.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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