Validates if the given string is a valid IPv6 address.
static bool isValidIPv6(String ip) { final regex = RegExp(r'^(?:[a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\$'); return regex.hasMatch(ip); }