name property

String name

Get the name of the type, e.g. "IPv4" or "IPv6".

Implementation

String get name {
  switch (_value) {
    case -1:
      return "ANY";
    case 0:
      return "IPv4";
    case 1:
      return "IPv6";
    case 2:
      return "Unix";
    default:
      throw new ArgumentError("Invalid InternetAddress");
  }
}