Asset class

Base Assets class. See: Assets.

Implementers

Constructors

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

Properties

hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
Returns asset type. Possible types: [...]
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
toXdr() XdrAsset
Generates XDR object of this Asset object.

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 xdr_asset.

Constants

TYPE_NATIVE → const String
"native"