removeCharacters static method
Remove special characters (ex: /
, -
, .
)
Implementation
static String removeCharacters(String valor) {
assert(valor.isNotEmpty, 'Valor não pode ser vazio');
return valor.replaceAll(RegExp('[^0-9a-zA-Z]+'), '');
}