On this page
name property
String nameGet the name of the type, e.g. "IP_V4" or "IP_V6".
Source
String get name {
switch (_value) {
case -1:
return "ANY";
case 0:
return "IP_V4";
case 1:
return "IP_V6";
default:
throw new ArgumentError("Invalid InternetAddress");
}
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/InternetAddressType/name.html