withLanguage method

ValidationOptions withLanguage(
  1. String language
)

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;
}