getRutDV method Null safety

String getRutDV(
  1. 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;
}