parse static method

DVPeerAddress parse(
  1. String text
)

tryParse, throwing a FormatException naming text.

Implementation

static DVPeerAddress parse(String text) =>
    tryParse(text) ??
    (throw FormatException('"$text" is not a socket address'));