BlockchainConfig class

Annotations
  • @freezed

Constructors

BlockchainConfig.electrum({required ElectrumConfig config})
Electrum client
const
factory
BlockchainConfig.esplora({required EsploraConfig config})
Esplora client
const
factory
BlockchainConfig.rpc({required RpcConfig config})
Bitcoin Core RPC client
const
factory

Properties

config Object
no setterinherited
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 electrum(BlockchainConfig_Electrum value), required TResult esplora(BlockchainConfig_Esplora value), required TResult rpc(BlockchainConfig_Rpc value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? electrum(BlockchainConfig_Electrum value)?, TResult? esplora(BlockchainConfig_Esplora value)?, TResult? rpc(BlockchainConfig_Rpc value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult electrum(BlockchainConfig_Electrum value)?, TResult esplora(BlockchainConfig_Esplora value)?, TResult rpc(BlockchainConfig_Rpc value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult electrum(ElectrumConfig config)?, TResult esplora(EsploraConfig config)?, TResult rpc(RpcConfig config)?, 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 electrum(ElectrumConfig config), required TResult esplora(EsploraConfig config), required TResult rpc(RpcConfig config)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? electrum(ElectrumConfig config)?, TResult? esplora(EsploraConfig config)?, TResult? rpc(RpcConfig config)?}) → TResult?
inherited

Operators

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