withLanguage method
Returns a copy of the validation options with a specified language.
Implementation
ValidationOptions withLanguage(String language) {
if (language.isEmpty) return this;
final copy = _copy()..addLanguage(language);
return copy;
}