validateAadhaarNumber static method
Implementation
static bool validateAadhaarNumber(String aadharNumber) {
RegExp regex = RegExp("\\d{12}");
bool isValidAadhar = regex.hasMatch(aadharNumber);
if (isValidAadhar) {
isValidAadhar = AadhaarNumberValidator.validateVerhoeff(aadharNumber);
}
return isValidAadhar;
}