Address class Null safety

Represents a single address in the Stellar network. An address can represent an account or a contract.

Constructors

Address(int _type, {String? accountId, String? contractId})

Properties

accountId String?
read / write
contractId String?
read / write
hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type → dynamic
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() XdrSCAddress
toXdrSCVal() XdrSCVal

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forAccountId(String accountId) Address
forContractId(String contractId) Address
fromXdr(XdrSCAddress xdr) Address

Constants

TYPE_ACCOUNT → const int
0
TYPE_CONTRACT → const int
1