helpers/index library
Constants
-
listCoefficients
→ const Map<
TypeIdentification, List< int> >
Properties
-
mapRules
→ Map<
TypeIdentification, ValidationRule> -
final
Functions
-
algorithm10(
String firstDigits, String verificationDigitString) → bool - Validates a number using the "modulo 10" algorithm, commonly used for Ecuadorian national ID numbers.
-
algorithm11(
String initialDigits, String verificationDigitString, TypeIdentification typeIdentification) → bool - Validates a number using the "modulo 11" algorithm, used for Ecuadorian RUC numbers.
-
initValidate(
String identification, TypeIdentification typeIdentification) → void - Validates a numbers used for Ecuadorian RUC or DNI numbers.
-
validateCodeEstablishment(
String codeEstablishment) → void - Validate codeEstablishment of identification number.
-
validateCodeProvince(
String codeProvince) → void - Validate codeProvince of identification number.
-
validateThirdDigit(
String thirdDigit, TypeIdentification typeIdentification) → void - Validate third digit of identification number.