CurrencyAmount class
Represents an amount of currency, which can be either XRP or an issued currency.
Constructors
- CurrencyAmount.fromJson(dynamic json)
-
Factory method to create an instance of CurrencyAmount from JSON data.
factory
- CurrencyAmount.issue(IssuedCurrencyAmount isseAmount)
- Creates an instance of CurrencyAmount with issued currency value.
- CurrencyAmount.xrp(BigInt xrp)
- Creates an instance of CurrencyAmount with XRP value.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isNegative → bool
-
Indicates whether the amount is negative.
no setter
- isseAmount → IssuedCurrencyAmount?
-
The issued currency amount.
final
- isXrp → bool
-
Indicates whether the amount is in XRP.
no setter
- isZero → bool
-
Indicates whether the amount is zero.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- xrp → BigInt?
-
The XRP value of the amount.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCurrency(
) → XRPCurrencies - Converts the amount to an XRPCurrencies object.
-
toJson(
) → dynamic - Converts the object to JSON representation.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited