Address class

Annotations
  • @freezed

Constructors

Address.fromJson(String json)
factory
Address.pubKeyECDSA({required AddressPrefix prefix, required Uint8List publicKey})
factory
Address.publicKey({required AddressPrefix prefix, required Uint8List publicKey})
factory
Address.scriptHash({required AddressPrefix prefix, required Uint8List hash})
factory

Properties

copyWith → $AddressCopyWith<Address>
no setterinherited
encoded String
latefinal
hashCode int
The hash code for this object.
no setterinherited
prefix AddressPrefix
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

encodeAddress() String
isForPrefix(AddressPrefix prefix) bool
map<TResult extends Object?>({required TResult publicKey(_AddressPublicKey value), required TResult pubKeyECDSA(_AddressPubKeyECDSA value), required TResult scriptHash(_AddressScriptHash value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? publicKey(_AddressPublicKey value)?, TResult? pubKeyECDSA(_AddressPubKeyECDSA value)?, TResult? scriptHash(_AddressScriptHash value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult publicKey(_AddressPublicKey value)?, TResult pubKeyECDSA(_AddressPubKeyECDSA value)?, TResult scriptHash(_AddressScriptHash value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult publicKey(AddressPrefix prefix, Uint8List publicKey)?, TResult pubKeyECDSA(AddressPrefix prefix, Uint8List publicKey)?, TResult scriptHash(AddressPrefix prefix, Uint8List hash)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
scriptAddress() Uint8List
toJson() String
toString() String
A string representation of this object.
override
when<TResult extends Object?>({required TResult publicKey(AddressPrefix prefix, Uint8List publicKey), required TResult pubKeyECDSA(AddressPrefix prefix, Uint8List publicKey), required TResult scriptHash(AddressPrefix prefix, Uint8List hash)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? publicKey(AddressPrefix prefix, Uint8List publicKey)?, TResult? pubKeyECDSA(AddressPrefix prefix, Uint8List publicKey)?, TResult? scriptHash(AddressPrefix prefix, Uint8List hash)?}) → TResult?
inherited

Operators

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

Static Methods

decodeAddress(String address, [AddressPrefix expectedPrefix = AddressPrefix.unknown]) Address
isValid(String address, AddressPrefix expectedPrefix) bool
tryParse(String address, {required AddressPrefix expectedPrefix}) Address?