FxStringValidator class

FxStringValidator - validates a string for different purposes like name, number, email, etc.

Constructors

FxStringValidator()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

checkMaxAlphabet(String string, int maxAlphabet) bool
checkMaxDigit(String string, int maxDigit) bool
checkMinAlphabet(String string, int minAlphabet) bool
checkMinDigit(String string, int minDigit) bool
isAlphabetIncluded(String string) bool
isDigitIncluded(String string) bool
isEmail(String email) bool
isFirstCapital(String string) bool
isFirstLetter(String string) bool
isIgnoreCharactersPresent(String string, List<String>? ignoreCharacters) bool
isIncludedCharactersPresent(String string, List<String>? includeCharacters) bool
isSpecialCharacterIncluded(String string) bool
validateString(String string, {int minLength = 8, int maxLength = 20, bool firstCapital = false, bool firstDigit = false, bool includeDigit = false, bool includeAlphabet = false, bool includeSpecialCharacter = false, List<String>? includeCharacters, List<String>? ignoreCharacters, int minAlphabet = 5, int maxAlphabet = 20, int minDigit = 0, int maxDigit = 20}) bool
validateStringRange(String text, [int minLength = 8, int maxLength = 20]) bool