AssetAmount class

Utility class to deserialize asset quantities. This may be updated as we understand more about the use cases for assets

Inheritance

Constructors

AssetAmount({required num quantity, required AssetCode assetCode, dynamic unit = 'nanoasset'})
AssetAmount.fromQuantity(AssetCode assetCode, dynamic quantity)
factory

Properties

assetCode AssetCode
final
hashCode int
The hash code for this object.
no setterinherited
quantity num
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unit → dynamic
finalinherited

Methods

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

Operators

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