deFormat method Null safety

String deFormat(
  1. String value
)

Quita el formato especĂ­fico de RUT de un texto.

  • Ejemplo:
print(RUTValidator.deformat('12.933.245-2'));//129332452

Implementation

static String deFormat(String value) {
  return value.split('.').join('').split('-').join('');
}