isMulticast property
Whether the scope of the InternetAddress is multicast.
Implementation
@override
bool get isMulticast {
// Copied from dart:io
switch (type) {
case io.InternetAddressType.IPv4:
// Checking for 224.0.0.0 through 239.255.255.255.
return _inAddr[0] >= 224 && _inAddr[0] < 240;
case io.InternetAddressType.IPv6:
// Checking for ff00::/8.
return _inAddr[0] == 0xFF;
}
throw StateError('Unreachable');
}