ip_to_int 1.0.2 icon indicating copy to clipboard operation
ip_to_int: ^1.0.2 copied to clipboard

This package can be used to convert IP address to integer and revert it !

ip-to-int #

Dart codecov

Usage #

Class IpInt #

IpInt("<IP-ADDRESS>")
IpInt("127.0.0.1")

toInt

This method return the String ip address as integer

IpInt("<IP-ADDRESS>").toInt()
int integer = IpInt("127.2.3.1").toInt();
print(integer);

2130838273

toIp

This method return the integer as an String ip address

IpInt("<INTEGER>").toIp()
String ipAddress IpInt("2130706433").toIp()
print(ipAddress)

"127.0.0.1"
2
likes
110
pub points
0%
popularity

Publisher

verified publisher iconmartient.ovh

This package can be used to convert IP address to integer and revert it !

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ip_to_int