encapsulate method

MultiAddr encapsulate(
  1. String protocolName,
  2. String value
)

Encapsulates this multiaddr with another protocol/value pair

Implementation

MultiAddr encapsulate(String protocolName, String value) {
  final newAddr = toString() + '/$protocolName/$value';
  return MultiAddr(newAddr);
}