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 |
To use this plugin, add hkid_validator
as a [dependency in your pubspec.yaml file].
Here are small examples that show you how to use the HKIDValidator.
// Obtain HKIDValidator.
final hkidValidator = HKIDValidator();
// Check is HKID Validate or not; HKID - U443902 wuth Specific Character 0
bool isIdValid = HKIDValidator().isHKIDValid('U443902', '0');
// 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);```
String hkid = hkid.withPARES();
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.