isIPAddress function

bool isIPAddress(
  1. String? host
)

Returns true if is a IPv4 or IPv6 address.

Implementation

bool isIPAddress(String? host) {
  return isIPv4Address(host) || isIPv6Address(host);
}