normalize static method

String normalize(
  1. String number
)

Normalize number by removing additional symbols

Implementation

static String normalize(String number) {
  return number.split('').where((c) => int.tryParse(c) != null).join();
}