isIPv6 function

bool isIPv6(
  1. String? value
)

Returns true if the value is a valid IPv6 address

Implementation

bool isIPv6(String? value) {
  if (value == null || value.isEmpty) return false;
  return _iPv6Regex.hasMatch(value);
}