This package provides an easy way to validate Indian Government Documents like Aadhar,PAN and GSTIN. This is often useful to avoid the use of RegEx for validating the user inputs which maynot work in some scenarios, this package written purely in dart will validate the numbers through CheckSum values.
govt_document_validator_example.mp4
This video demonstartes the simplest usage of this package in user forms.
For verifying Goverment Document inputs in User Forms use the simple functions provided by this package.
import 'package:govt_documents_validator/govt_documents_validator.dart';
bool isAadharNum;
String aadharNumber = 'xxxxxxxxxxxx';
AadharValidator aadharValidator = new AadharValidator();
isAadharNum = aadharValidator.validate(aadharNumber);
For verifying Goverment Document inputs in User Forms use the simple functions provided by this package.
import 'package:govt_documents_validator/govt_documents_validator.dart';
bool isGSTNum;
String gstNumber = 'xxxxxxxxxxxxxx';
GSTValidator gstValidator = new GSTValidator();
isGSTNum = gstValidator.validate(aadharNumber);
For verifying Goverment Document inputs in User Forms use the simple functions provided by this package.
import 'package:govt_documents_validator/govt_documents_validator.dart';
bool isPAnNum;
String panNumber = 'xxxxxxxxxx';
PANValidator panValidator = new PANValidator();
isPAnNum = panValidator.validate(aadharNumber);