getFarsiNumberInt function
Implementation
String getFarsiNumberInt(int number) {
const en = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
const fa = ['۰', '۱', '۲', '۳', '۴', '۵', '۶', '۷', '۸', '۹'];
String numberStr = number.toString();
for (var element in en) {
numberStr = numberStr.replaceAll(element, fa[en.indexOf(element)]);
}
return numberStr;
}