Ip4Address class

Inheritance

Constructors

Ip4Address.decode(RawReader reader)
factory
Ip4Address.fromBytes(List<int> bytes, int index)
factory
Ip4Address.fromUint32(int asUint32)
const

Properties

asUint32 int
Returns address as a 32-bit unsigned internet.
final
hashCode int
Determines hash by serializing this value.
read-only, inherited
isIpv4 bool
Inspects whether the address is IPv4 address or IPv6 mapping of IPv4 address.
read-only, override
isLocalNetwork bool
Inspects whether the address is a local network address (e.g. 10.0.01).
read-only, override
isLoopback bool
Inspects whether the address is loopback address (e.g. 127.0.0.1)
read-only, override
protocol Protocol
Returns protocol (ipv4 or ipv6).
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

encodeSelf(RawWriter writer) → void
Encodes this object.
override
encodeSelfCapacity() int
Returns an estimate of the maximum number of bytes needed to encode this value.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toImmutableByteData() ByteData
Returns an immutable encoding of this value.
inherited
toImmutableBytes() List<int>
Returns an immutable encoding of this value.
inherited
toMutableByteData() ByteData
Returns a mutable encoding of this value.
inherited
toMutableBytes() List<int>
Returns a mutable encoding of this value.
inherited
toString() String
Returns string representation of the address.
override

Operators

operator ==(dynamic other) bool
Determines equality by serializing both values.
inherited

Static Properties

any Ip4Address
final
broadcast Ip4Address
final
loopback Ip4Address
final
zero Ip4Address
final

Static Methods

parse(String s) Ip4Address
Parses either Ip4Address or Ip6Address.
override