Payload class

Annotations
  • @freezed

Constructors

Payload.pubkeyHash({required Uint8List pubkeyHash})
P2PKH address.
const
factory
Payload.scriptHash({required Uint8List scriptHash})
P2SH address.
const
factory
Payload.witnessProgram({required WitnessVersion version, required Uint8List program})
Segwit address.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult pubkeyHash(Payload_PubkeyHash value), required TResult scriptHash(Payload_ScriptHash value), required TResult witnessProgram(Payload_WitnessProgram value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? pubkeyHash(Payload_PubkeyHash value)?, TResult? scriptHash(Payload_ScriptHash value)?, TResult? witnessProgram(Payload_WitnessProgram value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult pubkeyHash(Payload_PubkeyHash value)?, TResult scriptHash(Payload_ScriptHash value)?, TResult witnessProgram(Payload_WitnessProgram value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult pubkeyHash(Uint8List pubkeyHash)?, TResult scriptHash(Uint8List scriptHash)?, TResult witnessProgram(WitnessVersion version, Uint8List program)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult pubkeyHash(Uint8List pubkeyHash), required TResult scriptHash(Uint8List scriptHash), required TResult witnessProgram(WitnessVersion version, Uint8List program)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? pubkeyHash(Uint8List pubkeyHash)?, TResult? scriptHash(Uint8List scriptHash)?, TResult? witnessProgram(WitnessVersion version, Uint8List program)?}) → TResult?
inherited

Operators

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