TextValidationConfig constructor
const
TextValidationConfig({})
Creates a new TextValidationConfig with customizable rules.
By default, trims whitespace and does not allow empty text.
Implementation
const TextValidationConfig({
this.minLength,
this.maxLength,
this.allowEmpty = false,
this.allowOnlyWhitespace = false,
this.trimWhitespace = true,
this.pattern,
this.blacklistedWords = const {},
this.allowedCharacters,
this.wholeWordBlacklist = false,
});