AllValidations class

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

hasMatch(String? value, String pattern) bool
isAlphabetOnly(String s) bool
Checks if string consist only Alphabet. (No Whitespace)
isAudio(String filePath) bool
Checks if string is an audio file.
isBinary(String s) bool
Checks if string is binary.
isBool(String value) bool
Checks if string is boolean.
isChm(String filePath) bool
Checks if string is an chm file.
isCnpj(String cnpj) bool
isCpf(String cpf) bool
Checks if the cpf is valid.
isCreditCard(String str) bool
Check if the string is a credit card
isDateTime(String s) bool
Checks if string is DateTime (UTC or Iso8601).
isEmail(String s) bool
Checks if string is email.
isEqual(num a, num b) bool
Checks if num a EQUAL than num b.
isGreaterThan(num a, num b) bool
Checks if num a GREATER than num b.
isHexadecimal(String s) bool
Checks if string is hexadecimal. Example: HexColor => #12F
isHTML(String filePath) bool
Checks if string is an html file.
isImage(String filePath) bool
Checks if string is an image file.
isInt(String str) bool
Check if the string str is an integer
isIPv4(String s) bool
Checks if string is IPv4.
isIPv6(String s) bool
Checks if string is IPv6.
isJSON(dynamic str) bool
Check if the string is valid JSON
isLowercase(String str) bool
Check if the string str is lowercase
isLowerThan(num a, num b) bool
Checks if num a LOWER than num b.
isMapExists({required List<String> key, required Map map}) bool
isMD5(String s) bool
Checks if string is MD5 hash.
isMediumPassword(String password) bool
isName(String value) bool
Check if name not contain special character like #$%*@!
isNickname(String nickName) bool
Check if Nickname is valid format
isNull(dynamic value) bool
Checks if data is null.
isNum(String value) bool
Checks if string is int or double.
isNumericFloat(String s) bool
Numeric only but '' return true
isNumericOnly(String s) bool
Checks if string consist only numeric. Numeric only doesn't accepting "." which double data type have
isPalindrome(String string) bool
Checks if string is Palindrome.
isPDF(String filePath) bool
Checks if string is an pdf file.
isPhoneNumber(String s) bool
Checks if string is phone number.
isPhraseEqual(String phase1, String phase2) bool
check if password is equal to confirm password or pharse is equal to confirm phrase
isRG(String rg) bool
Check if RG is valid format included with x in end
isSHA1(String s) bool
Checks if string is SHA1 hash.
isSHA256(String s) bool
Checks if string is SHA256 hash.
isSSN(String s) bool
Checks if string is SSN (Social Security Number).
isStrongPassword(String password) bool
isTxt(String filePath) bool
Checks if string is an txt file.
isUppercase(String str) bool
Check if the string str is uppercase
isURL(String s) bool
Checks if string is URL.
isUUID(String? str, [dynamic version]) bool
Check if the string is a UUID (version 3, 4 or 5).
isValidBRZip(String cep) bool
Check if CEP is valid format
isVector(String filePath) bool
Checks if string is a vector file.
isVideo(String filePath) bool
Checks if string is an video file.
removeAccents(String phrase) String
Remove Accents from Strings
removeCharacters(String valor) String
Remove special characters (ex: /, -, .)