parse static method

DVIpAddress parse(
  1. String text
)

tryParse, throwing a FormatException naming text.

Implementation

static DVIpAddress parse(String text) =>
    tryParse(text) ??
    (throw FormatException('"$text" is not an IPv4 or IPv6 address'));