IPTools class

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

Static Properties

binPattern RegExp
final
binPatternFull RegExp
final
maxIPv4Range BigInt
final
maxIPv6Range BigInt
final
prefixPattern RegExp
final
prefixPattern2 RegExp
final

Static Methods

cidrToIPv4(String cidr) List<String>?
Returns the IPv4 ranges for the cidr.
cidrToIPv6(String cidr) List<String>?
Returns the IPv6 ranges for the cidr.
compressIPv6(String ip) String
Returns the compressed form for ip.
decimalToIPv4(BigInt num) String?
Converts a number num to an IPv4.
decimalToIPv6(BigInt num) String?
Converts a number num to an IPv6.
expandIPv6(String ip) String?
Returns the expanded form for ip.
ipv4ToCidr(String ipFrom, String ipTo) List<String>?
Returns the CIDR for the IPv4 range between ipFrom and ipTo.
ipv4ToDecimal(String ip) BigInt?
Converts an IPv4 ip to a number.
ipv6ToCidr(String ipFrom, String ipTo) List<String>
Returns the CIDR for the IPv6 range between ipFrom and ipTo.
ipv6ToDecimal(String ip) BigInt?
Converts an IPv6 ip to a number.
isIPv4(String ip) bool
Whether ip is an IPv4 address.
isIPv6(String ip) bool
Whether ip is an IPv4 address.