toEnglishNumber function

String toEnglishNumber(
  1. String input
)

Implementation

String toEnglishNumber(String input) {
  assert(_englishNumbers.length == _arabicNumbers.length);

  for (int i = 0; i < _englishNumbers.length; i++) {
    input = input.replaceAll(_arabicNumbers[i], _englishNumbers[i]);
  }

  return input;
}