fromBytes method
Implementation
static IpAddress fromBytes(List<int> bytes) {
switch (bytes.length) {
case 4:
return Ip4Address.fromBytes(bytes, 0);
case 16:
return Ip6Address.fromBytes(bytes, 0);
default:
throw ArgumentError.value(
bytes, "bytes", "invalid length (${bytes.length})");
}
}