Asset class abstract
Base Assets class. See: Assets.
- Implementers
Constructors
- Asset()
-
Asset.fromJson(Map<
String, dynamic> json) -
factory
Properties
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 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 theissuer
of the asset. -
fromXdr(
XdrAsset xdrAsset) → Asset -
Generates an Asset object from a given XDR object
xdrAsset
.
Constants
- TYPE_CREDIT_ALPHANUM4 → const String
- TYPE_CREDIT_ALPHANUM12 → const String
- TYPE_NATIVE → const String
- TYPE_POOL_SHARE → const String