Protocol class

Represents a multiaddr protocol

Constructors

Protocol({required String name, required int code, required int size, String? path})
const

Properties

code → int
final
hashCode → int
The hash code for this object.
no setterinherited
hasPath → bool
Returns true if this protocol has a path component
no setter
isVariableSize → bool
Returns true if this protocol has a variable size value
no setter
name → String
final
path → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
size → int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toInternetAddress(String value) → InternetAddress
Converts a protocol value to an InternetAddress if possible Throws ArgumentError if the protocol doesn't support conversion to InternetAddress
toString() → String
A string representation of this object.
override

Operators

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