Ipv6 class
Validates IPv6 address strings (RFC 4291 ยง2.2).
Both compressed and uncompressed forms are accepted. Group matching is
case-insensitive (e.g. 2001:DB8::1 is valid). The empty string and
strings with trailing/leading whitespace are rejected.
Example:
Ipv6.isValid('::1'); // true (loopback)
Ipv6.isValid('::'); // true (all-zeros)
Ipv6.isValid('::ffff:1.2.3.4'); // true (IPv4-mapped)
Ipv6.isValid('gggg::1'); // false (invalid hex digit)
Ipv6.isValid('1::2::3'); // false (two :: groups)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited