getCachedValue method
Returns a cached value for this validator. Will be passed to validate on every validation.
Implementation
@override
getCachedValue(DogStructure<dynamic> structure, DogStructureField field) {
return _RegexCacheEntry(
RegExp(pattern), field.iterableKind != IterableKind.none);
}