RUTValidator class Null safety

Constructors

RUTValidator({int? numbers, String? dv, String? validationErrorText})

Properties

digitoVerificado String
Retorna el valor del digito verificador String en base a los números que componen la cadena de Strings mediante el calculo Mod 11.
read-only
dv String
read / write
hashCode int
The hash code for this object.
read-only, inherited
isValid bool
Retorna la validez de un rut de entrada
read-only
numbers int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
validationErrorText String
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
validator(String? value) String?
Valida rut en base al cálculo de su dígito verificador y formato.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

deFormat(String value) String
Quita el formato específico de RUT de un texto.
deFormatWithHyphen(String value) String
Quita el formato específico de RUT de un text y lo deja con el guión.
formatFromText(String value) String
Aplica el formato específico de RUT a partir de un texto. Formatos soportados:
formatFromTextController(TextEditingController controller) → void
Aplica el formato específico de RUT a partir de un controlador de texto. Formatos soportados:
getRutDV(String rutString) String
Obtiene dígito verificador a partir de un RUT con formato de puntos y guiones.
getRutNumbers(String rutString) int
Obtiene los elementos numéricos que componen el RUT, excluyendo el digito verificador.