getRutDV method Null safety
- String rutString
Obtiene dÃgito verificador a partir de un RUT con formato de puntos y guiones.
Implementation
static String getRutDV(String rutString) {
dynamic actualDV = _getRUTElements(rutString)[1];
return (RegExp(r'[0kK]').hasMatch(actualDV)) ? '0' : actualDV;
}