IPv4Interface class Null safety

A class for representing and manipulating single IPv4 Addresses + Networks.

Constructors

IPv4Interface(String addr)
Creates a new IPv4Interface.

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
ip IPv4Address
The address without network information.
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
network IPv4Network
The network this interface belongs to.
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
toBigInt() BigInt
Returns an bigint representation of an IP address.
inherited
toInt() int
Returns an integer representation of an IP address.
inherited
toString() String
A string representation of this object. [...]
override

Operators

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

Static Methods

tryParse(String addr) IPv4Interface?
Creates a new IPv4Interface. Like constructor except that this function returns null.