nik_validator 1.1.2 copy "nik_validator: ^1.1.2" to clipboard
nik_validator: ^1.1.2 copied to clipboard

NIK Validator is a package that functions to parse Identity Card information in Indonesia

nik_validator #

NIK Validator is a package to converting Indonesian Identity Card Number into useful informations. You just call the function .parse and input NIK number in the parameter, then you will get the informations, without internet connection (offline)

GitHub issues  GitHub pull-requests  Example  Star  Get the library

Example Code: #

NIKModel result = await NIKValidator.instance.parse(nik: nik);
/// When nik is valid
if (result.valid) {
  print("NIK: ${result.nik}");
  print("UNIQUE CODE: ${result.uniqueCode}");
  print("GENDER: ${result.gender}");
  print("BORNDATE: ${result.bornDate}");
  print("AGE: ${result.age}");
  print("NEXT BIRTHDAY: ${result.nextBirthday}");
  print("ZODIAC: ${result.zodiac}");
  print("PROVINCE: ${result.province}");
  print("CITY: ${result.city}");
  print("SUBDISTRICT: ${result.subdistrict}");
  print("POSTAL CODE: ${result.postalCode}");
}

About Me #

Visit my website : leeyurani.com

Follow my Github : GitHub followers

30
likes
130
pub points
75%
popularity

Publisher

verified publisherleeyurani.com

NIK Validator is a package that functions to parse Identity Card information in Indonesia

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on nik_validator