hkid_validator 0.0.5 copy "hkid_validator: ^0.0.5" to clipboard
hkid_validator: ^0.0.5 copied to clipboard

An HKID Validator and Generator, written by a pure dart. Through this library, you would easily validate your HKID quickly.

HKID Validator Library #

DockerCI ForkCI GitHubPageCICD GithubPacakgesCI pages-build-deployment

HKID Validator Library, support HKID Validation and generated eight or nine digits validated HKID.

Android iOS Linux macOS Web Windows
Support Any Any Any Any Any Any

Usage #

To use this plugin, add hkid_validator as a [dependency in your pubspec.yaml file].

Examples #

Here are small examples that show you how to use the HKIDValidator.

Validate the HKID

// Obtain HKIDValidator.
final hkidValidator = HKIDValidator();

// Check is HKID Validate or not; HKID - U443902 wuth Specific Character 0
bool isIdValid = HKIDValidator().isHKIDValid('U443902', '0');

Generate HKID

// Generate the Random Validate HKID with Eight or Nine digits
String hkid = HKIDValidator().genRanValidHKID(isEight: true);

// Generate the Validate HKID with eight number
String hkid = HKIDValidator().genValidHKID(isEight: true);

// Generate the Validate HKID with Nine number
String hkid = HKIDValidator().genValidHKID(isEight: false);```

Add Parentheses at the last character

String hkid = hkid.withPARES();

HKID Validator Demo #

The UI of HKID Validator Web App, was inspired by icelam. A Flutter Web Demo for HKID Validator, this web demo is used to demonstrate the powerful of Flutter in Web Development and the usage of the packages called hkid_validator.

0
likes
140
points
65
downloads

Publisher

unverified uploader

Weekly Downloads

An HKID Validator and Generator, written by a pure dart. Through this library, you would easily validate your HKID quickly.

Documentation

API reference

License

MIT (license)

Dependencies

flutter, test

More

Packages that depend on hkid_validator