ip_to_int 1.0.2 copy "ip_to_int: ^1.0.2" to clipboard
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
40
points
26
downloads

Publisher

verified publishermartient.ovh

Weekly Downloads

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

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ip_to_int