v6 static method
Implementation
static Validator<String> v6({String? error}) => (value, context) {
final ip = context.resources.tryGet<IpResource>(
value,
temp: !context.usePermanentCache,
);
if (ip == null) return (false, 'ip resource not found in context');
if (ip.isIpv6) {
return (true, null);
}
return (false, error ?? context.errors.ipErrors.v6());
};