RegexValidator class
A utility class for validating various types of input fields.
Supports validation for:
- PIN Code
- Bank Account Number
- IFSC Code
- Passwords
- Indian Mobile Number
- Aadhaar Number
- PAN
- GSTIN
- State, City, Name, Address, Shop Name, Email
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
-
isValidAadhaar(
String aadhaar) → bool - Validates a 12-digit Aadhaar number (first digit 2-9).
-
isValidAadhaarCard(
String aadhaar) → bool -
isValidAccountType(
String type) → bool -
isValidAddress(
String address) → bool - Validates an address (5-100 characters, letters, numbers, spaces, and certain symbols allowed).
-
isValidBankAccount(
String bankAccount) → bool - Validates a bank account number (10-18 digits).
-
isValidBankAccountNumber(
String account) → bool -
isValidCity(
String city) → bool - Validates a city name (2-40 characters, letters, spaces, hyphens allowed).
-
isValidDob(
String dob) → bool -
isValidEmail(
String email) → bool - Validates an email address (standard email format).
-
isValidFirstName(
String name) → bool - this validate first name of user (Name format )
-
isValidGender(
String gender) → bool -
isValidGstin(
String gstin) → bool - Validates a GSTIN number (Indian GST format).
-
isValidIfsc(
String ifsc) → bool - Validates an IFSC code (format: XXXX0XXXXXX).
-
isValidIfscCode(
String ifsc) → bool -
isValidIndianMobile(
String mobile) → bool - Validates an Indian mobile number (10 digits, optional +91).
-
isValidLastName(
String name) → bool - this van validate last name of user(Lastname format)
-
isValidName(
String name) → bool - Validates a name (2-40 characters, letters, spaces, apostrophes, hyphens allowed).
-
isValidPan(
String pan) → bool - Validates a PAN number (format: ABCDE1234F).
-
isValidPanCard(
String pan) → bool -
isValidPassword(
String password) → bool - Validates a password with at least 6 characters, including letters, numbers, and special characters (! $ @ %).
-
isValidPinCode(
String pin) → bool - Validates a 6-digit PIN Code.
-
isValidShopName(
String name) → bool - Validates a shop name (3-50 characters, letters, numbers, spaces, & , ' . - allowed).
-
isValidStateName(
String state) → bool - Validates a state name (3-30 characters, letters and spaces only).
-
isValidTurnover(
String turnover) → bool