removeCaracteres method

String removeCaracteres (
  1. String valor
)

Implementation

static String removeCaracteres(String valor) {
  assert(valor.isNotEmpty);
  return valor.replaceAll(RegExp('[^0-9a-zA-Z]+'), '');
}