IndianAadhaarValidator<T> class

Validates Indian Aadhaar Format: 12 digits with Verhoeff checksum

Inheritance
Mixed-in types

Constructors

IndianAadhaarValidator()

Properties

customErrorMessage String?
Custom error message override.
getter/setter pairinherited
defaultErrorMessage String
The default error message for this validator.
no setteroverride
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getErrorMessage(ValidationContext<T> context, String? value) String
Gets the error message for this validator.
inherited
isValid(ValidationContext<T> context, String? value) bool
Determines if the value is valid.
override
isValidAsync(ValidationContext<T> context, String? value) Future<bool>
Determines if the value is valid asynchronously.
inherited
luhnCheck(String digits) bool
Luhn algorithm (Mod 10) - Used by credit cards, Canadian SIN, etc.
inherited
mod11Checksum(String digits, List<int> weights) int
Mod 11 checksum with custom weights - Used by CPF, RUT, NIF, etc.
inherited
mod97(String numericString) int
Mod 97 checksum - Used by IBAN, Belgian National Number, etc.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validate(ValidationContext<T> context, String? value, String propertyName) List<ValidationFailure>
Validates the property value.
inherited
validateAsync(ValidationContext<T> context, String? value, String propertyName) Future<List<ValidationFailure>>
Validates the property value asynchronously.
inherited
verhoeffCheck(String digits) bool
Verhoeff algorithm - Used by Indian Aadhaar
inherited

Operators

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