свойство name
String nameПолучить имя типа, например, "IP_V4" или "IP_V6".
Исходный код
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