toArabicNumber function

String toArabicNumber(
  1. String input
)

Implementation

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

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

  return input;
}