Asset class abstract

Base Assets class. See: Assets.

Implementers

Constructors

Asset()
Asset.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type String
Returns asset type. Possible types:
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXdr() XdrAsset
Generates XDR object of this Asset object.
toXdrChangeTrustAsset() XdrChangeTrustAsset
toXdrTrustLineAsset() XdrTrustlineAsset

Operators

operator ==(Object object) bool
The equality operator.
override

Static Properties

NATIVE Asset
final

Static Methods

canonicalForm(Asset asset) String
create(String type, String? code, String? issuer) Asset
createFromCanonicalForm(String? canonicalForm) Asset?
createNonNativeAsset(String code, String issuer) Asset
Creates one of AssetTypeCreditAlphaNum4 or AssetTypeCreditAlphaNum12 object based on a code, its length and the issuer of the asset.
fromXdr(XdrAsset xdrAsset) Asset
Generates an Asset object from a given XDR object xdrAsset.