Amount class

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

Annotations
  • @immutable

Constructors

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

Properties

currency → Currency
final
hashCode → int
The hash code for this object.
no setterinherited
metadata → Map<String, dynamic>?
final
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.
final
valueInBigInt → BigInt
no setter

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