govt_documents_validator 0.0.1 copy "govt_documents_validator: ^0.0.1" to clipboard
govt_documents_validator: ^0.0.1 copied to clipboard

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 [...]

govt_documents_validator #

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.

Example usage in User Forms #

https://user-images.githubusercontent.com/31805162/109400913-7d934180-7971-11eb-9354-70a7e52f7100.mp4

This video demonstartes the simplest usage of this package in user forms.

Using AadharValidator #

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);

Using GSTValidator #

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);

Using PANValidator #

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);
4
likes
30
pub points
71%
popularity

Publisher

unverified uploader

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.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on govt_documents_validator