normalizeDiallableCharsOnly method

String normalizeDiallableCharsOnly(
  1. String number
)

normalizes a string of characters representing a phone number. this strips all characters which are not diallable on a mobile phone keypad (including all non-ascii digits).

number is a string of characters representing a phone number. normalizeDiallableCharsOnly returns the normalized string version of the phone number.

Implementation

String normalizeDiallableCharsOnly(String number) {
  return _normalizeHelper(number, _diallableCharMappings, true);
}