ValidationUtils class
Validation utility functions for common validation tasks
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
-
checkValidAadhaarNumber(
String aadhaarNumber) → bool - Check if string is a valid Aadhaar number (Indian Aadhaar format)
-
checkValidCreditCardNumber(
String cardNumber) → bool - Check if string is a valid credit card number
-
checkValidEmail(
String email) → bool - Check if string is a valid email address
-
checkValidGSTNumber(
String gstNumber) → bool - Check if string is a valid GST number (Indian GST format)
-
checkValidIFSCCode(
String ifscCode) → bool - Check if string is a valid Indian IFSC code
-
checkValidIndianMobileNumber(
String mobileNumber) → bool - Check if string is a valid Indian mobile number
-
checkValidLength(
String text, int requiredLength) → bool - Check if string has valid length
-
checkValidPanNumber(
String panNumber) → bool - Check if string is a valid PAN number (Indian PAN format)
-
checkValidPassword(
String password, {int minLength = 8, bool requireUppercase = true, bool requireLowercase = true, bool requireNumbers = true, bool requireSpecialChars = true}) → bool - Check if string is a valid password
-
checkValidPhoneNumber(
String phoneNumber, {int minLength = 10, int maxLength = 15}) → bool - Check if string is a valid phone number
-
checkValidUPIId(
String upiId) → bool - Check if string is a valid Indian UPI ID
-
checkValidUrl(
String url) → bool - Check if string is a valid URL
-
isAlphabetsOnly(
String text) → bool - Check if string contains only alphabets
-
isAlphanumeric(
String text) → bool - Check if string is alphanumeric
-
isEmpty(
String? text) → bool - Check if string is empty or null
-
isNotEmpty(
String? text) → bool - Check if string is not empty and not null
-
isNumbersOnly(
String text) → bool - Check if string contains only numbers