Protocols class

Registry of supported multiaddr protocols

Constructors

Protocols.new()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

all List<Protocol>
Returns a list of all supported protocols
no setter

Static Methods

byCode(int code) Protocol?
Returns the protocol for the given code
byName(String name) Protocol?
Returns the protocol for the given name
isSupported(String name) bool
Returns true if the protocol is supported

Constants

certhash → const Protocol
circuit → const Protocol
dns4 → const Protocol
dns6 → const Protocol
dnsaddr → const Protocol
ip4 → const Protocol
ip6 → const Protocol
p2p → const Protocol
quicV1 → const Protocol
sni → const Protocol
tcp → const Protocol
udp → const Protocol
udx → const Protocol
unix → const Protocol
webtransport → const Protocol