nit_validator 1.0.1
nit_validator: ^1.0.1 copied to clipboard
A simple tool for offline check nit number, this use an simple algorithm to check if this is ok and returns a boolean according to the input.
Example #
From any place of your code, only call validateNIT function. Then this check the nit number and return an boolean value.
It require only nit as a param. This will be input to check.
import 'package:nit_validator/nit_validator.dart';
validateNIT("") == false
validateNIT("99999") == false
validateNIT("101735529") == true
validateNIT("1487010k") == true
validateNIT("1487010-k") == true
If it's ok, return true or else return false