DVIpAddress class final

An IPv4 or IPv6 address.

Properties

bytes → List<int>
The address's octets, most significant first.
no setter
hashCode → int
The hash code for this object.
no setteroverride
isIPv4 → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
Dotted quad for IPv4; RFC 5952 form for IPv6.
override

Operators

operator ==(Object other) → bool
The equality operator.
override

Static Methods

fromBytes(List<int> bytes) → DVIpAddress
The address from its bytes: four for IPv4, sixteen for IPv6.
parse(String text) → DVIpAddress
tryParse, throwing a FormatException naming text.
tryParse(String text) → DVIpAddress?
Parses text as a bare address: dotted-quad IPv4 or RFC 4291 IPv6, with no port, brackets, zone or surrounding space.