TextValidationConfig constructor

const TextValidationConfig({
  1. bool allowEmpty = true,
  2. bool allowOnlyWhitespace = true,
  3. bool trimWhitespace = false,
  4. int? minLength,
  5. int? maxLength,
  6. String? pattern,
  7. String? allowedCharacters,
  8. Set<String> blacklistedWords = const {},
})

Creates a text validation config.

Implementation

const TextValidationConfig({
  this.allowEmpty = true,
  this.allowOnlyWhitespace = true,
  this.trimWhitespace = false,
  this.minLength,
  this.maxLength,
  this.pattern,
  this.allowedCharacters,
  this.blacklistedWords = const {},
});