InternetAddressType class

The type, or address family, of an InternetAddress.

Currently, IP version 4 (IPv4), IP version 6 (IPv6) and Unix domain address are supported. Unix domain sockets are available only on Linux, MacOS and Android.

Properties

hashCodeint
read-only, inherited
The hash code for this object. [...]
nameString
read-only
Get the name of the type, e.g. "IPv4" or "IPv6".
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
override
A string representation of this object. [...]

Operators

operator ==(Object other) → bool
inherited
The equality operator. [...]

Constants

ANY → const InternetAddressType
@Deprecated("Use any instead")
any
any → const InternetAddressType
const InternetAddressType._(-1)
IP_V4 → const InternetAddressType
@Deprecated("Use IPv4 instead")
IPv4
IP_V6 → const InternetAddressType
@Deprecated("Use IPv6 instead")
IPv6
IPv4 → const InternetAddressType
const InternetAddressType._(0)
IPv6 → const InternetAddressType
const InternetAddressType._(1)
unix → const InternetAddressType
@Since("2.8")
const InternetAddressType._(2)

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.13.0/dart-io/InternetAddressType-class.html