Asset class
Base Assets class. See: Assets.
- Implementers
Constructors
- Asset()
-
Asset.fromJson(Map<
String, dynamic> json) -
factory
Properties
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
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
xdr_asset
.
Constants
- TYPE_NATIVE → const String
-
"native"