isIP static method

bool isIP(
  1. String? ip
)

是否ip地址

Implementation

static bool isIP(String? ip) {
  return matches(regexIp, ip);
}