isIPv4Address function

bool isIPv4Address(
  1. String? host
)

Returns true if is a IPv4 address.

Implementation

bool isIPv4Address(String? host) {
  if (host == null) return false;
  return _regexpIpv4.hasMatch(host);
}