SimpleValidations class
emptyFieldValidator to validate if a form field is empty or not
bankIfscValidator to validate bank IFSC number
alphaCharactersValidator to validate if a form field contains only alphabets
alphaCharactersWithSpaceValidator to validate if a form field contains alphabets and space
alphaNumericCharactersValidator to validate if a form field contains only alpha-numeric values
alphaNumericCharactersWithSpaceValidator to validate if a form field contains alpha-numeric values and space
numericValidator to validate a number
numericWithSpaceValidator to validate a number
passportValidator to validate a passport number
panCardValidator to validate PAN card number
aadhaarValidator to validate Aadhaar card number
vidValidator to validate Aadhaar VID number
voterIdValidator to validate Voter ID number
socialSecurityValidator to validate social security number
emailValidator to validate an email address
phoneNumberValidator to validate a phone number
urlValidator to validate a URL
decimalValidator to check whether a number is a valid decimal number
passwordValidator to validate whether a password is strong or not
usernameValidator to validate a username
fileExtensionValidator to validate a file path
ipAddressValidator to validate an ip address
hexColorValidator to validate HEX color
creditCardValidator to validate credit card number
jsonValidator to validate json
uuidValidator to validate UUID
isbnValidator to validate ISBN (International Standard Book Number)
currencyValidator to validate ISBN (International Standard Book Number)
macAddressValidator to validate MAC address
htmlTagValidator to validate HTML tag
imeiValidator to validate IMEI number
ageValidator to validate age
postalCodeValidator to validate postal code
bankAccountNumberValidator to validate bank account number
nameValidator to validate name
usernameOrEmailValidator to validate either a valid email or a valid username (alphanumeric with underscore)
isbn13Validator to validate ISBN-13
imei15Validator to validate IMEI 15 digits
uuidV4Validator to validate UUID v4
postalAddressValidator to validate postal address
cvvValidator to validate CVV
ipv6Validator to validate ipv6
latitudeValidator to validate if the provided value matches the pattern of a valid latitude coordinate, ranging from -90 to +90 degrees
longitudeValidator to validate if the provided value matches the pattern of a valid longitude coordinate, ranging from -180 to +180 degrees.
usernameOrDisplayNameValidator to validate whtner the provided value is a valid username or display name
emojiValidator to validate whtner the provided value does not contain any emojis
slugValidator to validate slug
Constructors
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
-
aadhaarValidator(
String? value, [String? errorMessage]) → String? - aadhaarValidator to validate Aadhaar card number
-
ageValidator(
int? value, [String? errorMessage]) → String? - ageValidator to validate age
-
alphaCharactersValidator(
String? value, [String? errorMessage]) → String? - alphaCharactersValidator to validate if a form field contains only alphabets
-
alphaCharactersWithSpaceValidator(
String? value, [String? errorMessage]) → String? - alphaCharactersWithSpaceValidator to validate if a form field contains alphabets and space
-
alphaNumericCharactersValidator(
String? value, [String? errorMessage]) → String? - alphaNumericCharactersValidator to validate if a form field contains only alpha-numeric values
-
alphaNumericCharactersWithSpaceValidator(
String? value, [String? errorMessage]) → String? - alphaNumericCharactersWithSpaceValidator to validate if a form field contains alpha-numeric values and space
-
bankAccountNumberValidator(
String? value, [String? errorMessage]) → String? - bankAccountNumberValidator to validate bank account number
-
bankIfscValidator(
String? value, [String? errorMessage]) → String? - bankIfscValidator to validate bank IFSC number
-
creditCardValidator(
String? value, [String? errorMessage]) → String? - creditCardValidator to validate credit card number
-
currencyValidator(
String? value, [String? errorMessage]) → String? - currencyValidator to validate currency
-
cvvValidator(
String? value, [String? errorMessage]) → String? - cvvValidator to validate CVV
-
decimalValidator(
String? value, [String? errorMessage]) → String? - decimalValidator to check whether a number is a valid decimal number
-
emailValidator(
String? value, [String? errorMessage]) → String? - emailValidator to validate an email address
-
emojiValidator(
String? value, [String? errorMessage]) → String? - emojiValidator to validate whtner the provided value does not contain any emojis
-
emptyFieldValidator(
String? value, [String? errorMessage]) → String? - emptyFieldValidator to validate if a form field is empty or not
-
fileExtensionValidator(
String? value, List< String> allowedExtensions, [String? errorMessage]) → String? - fileExtensionValidator to validate a file path
-
hexColorValidator(
String? value, [String? errorMessage]) → String? - hexColorValidator to validate HEX color
-
htmlTagValidator(
String? value, [String? errorMessage]) → String? - htmlTagValidator to validate HTML tag
-
imei15Validator(
String? value, [String? errorMessage]) → String? - imei15Validator to validate IMEI 15 digits
-
imeiValidator(
String? value, [String? errorMessage]) → String? - imeiValidator to validate IMEI number
-
ipAddressValidator(
String? value, [String? errorMessage]) → String? - ipAddressValidator to validate an ip address
-
ipv6Validator(
String? value, [String? errorMessage]) → String? - ipv6Validator to validate ipv6
-
isbn13Validator(
String? value, [String? errorMessage]) → String? - isbn13Validator to validate ISBN-13
-
isbnValidator(
String? value, [String? errorMessage]) → String? - isbnValidator to validate ISBN (International Standard Book Number)
-
jsonValidator(
String? value, [String? errorMessage]) → String? - jsonValidator to validate json
-
latitudeValidator(
String? value, [String? errorMessage]) → String? - latitudeValidator to validate if the provided value matches the pattern of a valid latitude coordinate, ranging from -90 to +90 degrees
-
longitudeValidator(
String? value, [String? errorMessage]) → String? - longitudeValidator to validate if the provided value matches the pattern of a valid longitude coordinate, ranging from -180 to +180 degrees.
-
macAddressValidator(
String? value, [String? errorMessage]) → String? - macAddressValidator to validate MAC address
-
nameValidator(
String? value, [String? errorMessage]) → String? - nameValidator to validate name
-
numericValidator(
String? value, [String? errorMessage]) → String? - numericValidator to validate a number
-
numericWithSpaceValidator(
String? value, [String? errorMessage]) → String? - numericWithSpaceValidator to validate a number
-
panCardValidator(
String? value, [String? errorMessage]) → String? - panCardValidator to validate PAN card number
-
passportValidator(
String? value, [String? errorMessage]) → String? - passportValidator to validate a passport number
-
passwordValidator(
String? value, [String? errorMessage]) → String? - passwordValidator to validate whether a password is strong or not
-
phoneNumberValidator(
String? value, [String? errorMessage]) → String? - phoneNumberValidator to validate a phone number Accepts phone numbers with or without country code, and without any special characters
-
postalAddressValidator(
String? value, [String? errorMessage]) → String? - postalAddressValidator to validate postal address
-
postalCodeValidator(
String? value, [String? errorMessage]) → String? - postalCodeValidator to validate postal code
-
slugValidator(
String? value, [String? errorMessage]) → String? - slugValidator to validate slug
- socialSecurityValidator to validate social security number
-
urlValidator(
String? value, [String? errorMessage]) → String? - urlValidator to validate a URL
-
usernameOrDisplayNameValidator(
String? value, [String? errorMessage]) → String? - usernameOrDisplayNameValidator to validate whtner the provided value is a valid username or display name
-
usernameOrEmailValidator(
String? value, [String? errorMessage]) → String? - usernameOrEmailValidator to validate either a valid email or a valid username (alphanumeric with underscore)
-
usernameValidator(
String? value, [String? errorMessage]) → String? - usernameValidator to validate a username
-
uuidV4Validator(
String? value, [String? errorMessage]) → String? - uuidV4Validator to validate UUID v4
-
uuidValidator(
String? value, [String? errorMessage]) → String? - uuidValidator to validate UUID
-
vidValidator(
String? value, [String? errorMessage]) → String? - vidValidator to validate Aadhaar VID number
-
voterIdValidator(
String? value, [String? errorMessage]) → String? - voterIdValidator to validate Voter ID number