Asset class Null safety

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

Constants

TYPE_CREDIT_ALPHANUM4 → const String
"credit_alphanum4"
TYPE_CREDIT_ALPHANUM12 → const String
"credit_alphanum12"
TYPE_NATIVE → const String
"native"
TYPE_POOL_SHARE → const String
"liquidty_pool_shares"