IPv6Network class Null safety

A class for representing and manipulating 128-bit IPv6 network + addresses.

Constructors

IPv6Network(String addr, {bool strict = true})
Creates a new IPv6Network. Throw ValueError when strict opstion is true and network address is not supplied.

Properties

addresses Iterable<IPv6Address>
Returns an iterator over the all address in the network.
read-only
broadcastAddress IPv6Address
The broadcast address for the network.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
hostmask IPv6Address
The hostmask address for the network.
read-only
hosts Iterable<IPv6Address>
Returns an iterator over the usable hosts in the network.
read-only
maxPrefixlen int
The total number of bits in the address representation for this version: 32 for IPv4, 128 for IPv6.
read-only, inherited
netmask IPv6Address
The netmask address for the network.
read-only
networkAddress IPv6Address
The network address for the network.
read-only
numAddresses BigInt
The total number of addresses in the network.
read-only
prefixlen int
The prefix length of the network.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
version int
The appropriate version number: 4 for IPv4, 6 for IPv6.
read-only, inherited
withHostmask String
A string representation of the network, with the mask in host mask notation.
read-only
withNetmask String
A string representation of the network, with the mask in net mask notation.
read-only
withPrefixlen String
A string resresentation of the netwrok, with the mask in prefix length.
read-only

Methods

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

Operators

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

Static Methods

tryParse(String addr, {bool strict = true}) IPv6Network?
Creates a new IPv6Network. Like constructor except that this function returns null.