Skip to content

feat: add Aadhaar number validation utility#70

Open
sametday wants to merge 2 commits into
dhwani-ris:developfrom
sametday:feature/aadhaar-validation
Open

feat: add Aadhaar number validation utility#70
sametday wants to merge 2 commits into
dhwani-ris:developfrom
sametday:feature/aadhaar-validation

Conversation

@sametday

@sametday sametday commented Jun 2, 2026

Copy link
Copy Markdown

Description

This PR introduces the AadhaarValidator utility class to validate Indian Aadhaar numbers based on the standard 12-digit requirement format.

Fixes #66

Changes Made

  • Added a new aadhaar_validator.dart file inside the lib/utils/ directory.
  • Implemented static method isValid(String? aadhaarNumber).
  • Added regex validation to ensure the number is exactly 12 digits long and does not start with 0 or 1.
  • Handled empty/null inputs and stripped spaces/hyphens for accurate validation.

Type of Contribution

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring

@sametday

sametday commented Jun 3, 2026

Copy link
Copy Markdown
Author

.

@sametday

sametday commented Jun 3, 2026

Copy link
Copy Markdown
Author

@deepak-dhwani

@bhushan-barbuddhe

Copy link
Copy Markdown
Collaborator

Hi @sametday
Thank you for your contribution. However, this appears to be a very basic validation check.

Could you please enhance this by creating a reusable utility that performs Aadhaar number validation using Veroff? This would make the validation more robust and reusable across different modules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Aadhaar Number Validation Utility

3 participants