convertWesternNumberToEastern static method

String convertWesternNumberToEastern(
  1. int? easternNumber
)

Implementation

static String convertWesternNumberToEastern(int? easternNumber) {
  String englishNumber = easternNumber.toString();
  StringBuffer stringBuffer = StringBuffer();
  englishNumber.runes.forEach((rune) {
    String character = String.fromCharCode(rune);
    stringBuffer.write(easternArabicNumerals[int.parse(character)]);
  });
  return stringBuffer.toString();
}