intToIP static method

String intToIP(
  1. int ipInt
)

Convert integer to IP address

ipInt - The integer representation of IP Returns IPv4 address string

Implementation

static String intToIP(int ipInt) {
  return '${(ipInt >> 24) & 0xFF}.${(ipInt >> 16) & 0xFF}.${(ipInt >> 8) & 0xFF}.${ipInt & 0xFF}';
}